New issue 95 by martin.m...@gmail.com: Behavior differs from a local
version to a domain.com version
http://code.google.com/p/oauth-php/issues/detail?id=95
What steps will reproduce the problem?
1. Expose locally (MAMP) some services with oauth-php
2. Deploy them on a domain.com server
3. Try to use them
Hello,
I've been developing locally and exposing them with OAuth (oauth-php
framework). Everything works perfectly fine locally on my laptop but when I
deploy everything on my server it doesn't work anymore I get the following
error when I'm trying to get a request_token:
Can't verify request, missing oauth_consumer_key or oauth_token
I've be investigating why it doesn't behave the same and the only clue that
I found is in the log of OAuth: it looks like the oauth-php framework
doesn't fetch properly the parameters in my POST Requests.
I have the same version of PHP on my server and on my local environment. I
don't know what else could be affecting the oauth-php framework.
What can I do to find the problem? I don't know where to look...
Thanks!
Martin
Hi I have the same problem, and right now the problem it's solve.
This behavior come if you using apache/PHP cgi and can't find
function 'apache_request_headers', the system can't get Header
Authorization from request server.
For fix the problem please create file .htaccess and put this line
RewriteEngine on
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
regards
Setyagus Sucipto