From: Zach Copley Date: Thu, 7 Oct 2010 18:56:49 +0000 (-0700) Subject: Change temp credential test script to use POST instead of GET (more X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9d5224e2b4ae8dc8e8ac8b2328db77a6c01fc232;p=quix0rs-gnu-social.git Change temp credential test script to use POST instead of GET (more useful for testing in general) --- diff --git a/tests/oauth/getrequesttoken.php b/tests/oauth/getrequesttoken.php index 045d597166..73f502af30 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); }