OAuth iPhone client, problems with HTTP_AUTHORIZATION

Posted by Rich on Stack Overflow See other posts from Stack Overflow or by Rich
Published on 2010-03-27T15:05:55Z Indexed on 2010/03/27 15:13 UTC
Read the original article Hit count: 388

Filed under:
|
|
|

Hi,

I've been trying to implement OAuth in my iPhone app. However I have hit a problem. I have two servers, a local web server which is on my machine at home, I use this for testing. The machine is IIS 7 running PHP 5.08. Everything works fine on this server.

However my live (web server) is running Apache and PHP 5.12. The problem is when I try to request a RequestToken the HTTP_AUTHORIZATION variable isn't posted to the web server, so I get an error returned from the server saying 'Invaild Consumer Key'.

There is clearly a problem with the way the server is setup (as the code works on my local server). The code I am using is from this walkthrough http://code.google.com/p/oauthconsumer/wiki/UsingOAuthConsumer

I have tried dumping the PHP headers and indeed HTTP_AUTHORIZATION is missing.

Can anyone tell me how to fix this? (as it's driving me mad :))

Thanks Rich

© Stack Overflow or respective owner

Related posts about php

Related posts about oauth