PHP 5.3.10
OAuth PECL v1.2.2
Hello, I have installed the latest OAuth PECL extension for PHP and tried to use the supplied sample code provided by LinkedIn with the appropriate API keys. Whenever I try to execute the code I get the following errors.
PHP Warning: OAuth::getRequestToken(): SSL: Connection reset by peer in /xxx/xxx/oauth.php on line 16
PHP Warning: OAuth::getRequestToken(https://api.linkedin.com/uas/oauth/requestToken): failed to open stream: HTTP request failed! in /xxx/xxx/oauth.php on line 16
ERROR: exception 'OAuthException' with message 'making the request failed (dunno why)' in /xxx/xxx/oauth.php:16
Stack trace:
#0 /xxx/xxx/oauth.php(16): OAuth->getRequestToken('https://api.lin...')
#1 {main}
I've tested the Twitter OAuth API and it seems to work correctly so I am really at my wits end. I haven't seem to be able to find anyone else that is having this issue, so I do not know where to begin. Any help would be greatly appreciated.
- Log in to post comments
Hi Chris,
Odd. I have a suspicion it's an issue with your cacert bundle, but not positive. Could you try using http rather than https and see if there is still an issue to help narrow this down?
-Jeremy