]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Change temp credential test script to use POST instead of GET (more
authorZach Copley <zach@status.net>
Thu, 7 Oct 2010 18:56:49 +0000 (11:56 -0700)
committerZach Copley <zach@status.net>
Thu, 7 Oct 2010 18:56:49 +0000 (11:56 -0700)
useful for testing in general)

tests/oauth/getrequesttoken.php

index 045d597166bab2a2887bbb311759ef70a024246a..73f502af307f57cd2aed957c2431289d16bfc155 100755 (executable)
@@ -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);
 }