Werdna has uploaded a new change for review. https://gerrit.wikimedia.org/r/204022
Change subject: Fix example script: ...................................................................... Fix example script: * Needs namespace. * Needs CURLOPT_FOLLOWLOCATION Change-Id: I8fc893b22e693b7287154f1387a57a917e8fa02b --- M examples/testClient.php 1 file changed, 4 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/OAuth refs/changes/22/204022/1 diff --git a/examples/testClient.php b/examples/testClient.php index b949257..511a948 100644 --- a/examples/testClient.php +++ b/examples/testClient.php @@ -1,5 +1,7 @@ <?php +namespace MediaWiki\Extensions\OAuth; + if ( PHP_SAPI !== 'cli' ) { die( "CLI-only test script\n" ); } @@ -219,6 +221,8 @@ if( $moreVerbose === true ) { curl_setopt( $ch, CURLOPT_VERBOSE, 1 ); } +curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true ); +curl_setopt( $ch, CURLOPT_POSTREDIR, true ); $data = curl_exec( $ch ); if( !$data ) { echo 'Curl error: ' . curl_error( $ch ); -- To view, visit https://gerrit.wikimedia.org/r/204022 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8fc893b22e693b7287154f1387a57a917e8fa02b Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/OAuth Gerrit-Branch: master Gerrit-Owner: Werdna <agarr...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits