开发者

OAuth-php behavior differs from a local version to a domain.com version

I've been developing locally and exposing them with OAuth (oauth-php framework). Everything works perfectly fine locally on my laptop but when I de开发者_如何学Cploy 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


I noticed that the Authorize header was stripped from the request, I renamed it on the client and server side and everything is working great.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜