New issue 118 by elielso...@gmail.com: Param $oauth_as_header is not
configurable for call getQueryString on OAuthRequester.php
http://code.google.com/p/oauth-php/issues/detail?id=118
What steps will reproduce the problem?
1.Make an request_token using 2Leg
What is the expected output? What do you see instead?
The result of request_token. But i receive "failed with code 401: OAuth
Verification Failed: Can't verify request, missing oauth_consumer_key or
oauth_token."
What version of the product are you using? On what operating system?
oauth-php-175 on Linux
Please provide any additional information below.
After a lot of time waste on try a simple test with 2Leg request_token i
realized that all of my request to my OAuth server was going without the
data on GET OR POST queryString. All of the data
(oauth_consumer_key,oauth_consumer_signed,....) was going on Request
header. Making then to my OAuth Server don't recognize the request.
I modified the file OAuthRequester.php on 331 line. When is "$query =
$this->getQueryString();" i changed to "$query =
$this->getQueryString(true);"
And this solved my problem, because now the oauth data is being sending on
Request body and no longer only on Request header.
I think that this should be configurable, but the way that are ... all of
the request will always go without oauth data on request body.
Sorry ... i changed the "$query = $this->getQueryString();" to "$query =
$this->getQueryString(false);"
Because on the function getQueryString on OAuthRequestSigner.php have a
default param set to true.