dhruvil12 / oauth-php

Automatically exported from code.google.com/p/oauth-php
MIT License
0 stars 0 forks source link

Behavior differs from a local version to a domain.com version #95

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by martin.m...@gmail.com on 15 Jan 2011 at 1:57

GoogleCodeExporter commented 9 years ago
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

Original comment by setya...@icreativelabs.com on 12 Jun 2011 at 7:46

GoogleCodeExporter commented 9 years ago
Fixed for me

Original comment by jorgertr...@gmail.com on 12 Aug 2013 at 6:33