LinkedIn with Pecl OAuth: "got a 400, expected HTTP/1.1 20X or a redirect"
Posted
by CharlesS
on Stack Overflow
See other posts from Stack Overflow
or by CharlesS
Published on 2010-05-08T15:33:43Z
Indexed on
2010/05/08
15:38 UTC
Read the original article
Hit count: 527
I have Pecl OAuth with PHP5 on a Debian box and I try to authenticate to LinkedIn. When calling;
OAuth->getAccessToken('https://api.lin...')\n#1
I get;
PHP Fatal error: Uncaught exception 'OAuthException' with message 'Invalid auth/bad request (got a 400, expected HTTP/1.1 20X or a redirect)'
I have tried it from scratch and I have tried the PHP API wrappers that are available and (ofcourse, because they use OAuth Pecl ext) have all the same problem.
I read somewhere it might be the timestamp on the server, but I synched that up with ntpdate; it does that quite often now, so the offset with the timeservers is almost 0.
What else can it be?
Thanks
© Stack Overflow or respective owner