diff options
author | Zach Copley <zach@status.net> | 2010-10-07 11:56:49 -0700 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-10-07 11:56:49 -0700 |
commit | 9d5224e2b4ae8dc8e8ac8b2328db77a6c01fc232 (patch) | |
tree | 3592e76b04c2ec47979d4caa6f72e266574d2cc5 /tests/oauth | |
parent | 8658e4f8c4186574ac6503428be3ed534290387d (diff) |
Change temp credential test script to use POST instead of GET (more
useful for testing in general)
Diffstat (limited to 'tests/oauth')
-rwxr-xr-x | tests/oauth/getrequesttoken.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/oauth/getrequesttoken.php b/tests/oauth/getrequesttoken.php index 045d59716..73f502af3 100755 --- a/tests/oauth/getrequesttoken.php +++ b/tests/oauth/getrequesttoken.php @@ -47,7 +47,7 @@ try { $req = OAuthRequest::from_consumer_and_token( $testConsumer, null, - "GET", + "POST", $requestTokenUrl, $params ); @@ -56,6 +56,7 @@ try { } catch (Exception $e) { // oh noez print $e->getMessage(); + print "OAuth Request:\n"; var_dump($req); exit(1); } @@ -93,5 +94,5 @@ function httpRequest($url) ) ); - return $request->get($url); + return $request->post($url); } |