Re: [twitter-dev] Re: Oauth Echo and Drupal

2010-06-21 Thread Taylor Singletary
Hi Tim, The call specified in your HTTP_X_* headers is for the OAuth Echo provider to execute against the API. Since they execute the call, it invalidates the oauth_nonce you provided. Really, it's a different API call that your application should be executing following an OAuth Echo

[twitter-dev] Re: Oauth Echo and Drupal

2010-06-21 Thread Tim Millwood
I am trying to do something else. I am not trying post to twitpic, I am trying to post to my own web app (similar to twitpic). I am getting the HTTP_X_AUTH_SERVICE_PROVIDER and HTTP_X_VERIFY_CREDENTIALS_AUTHORIZATION headers from the test app, then my web app is renaming the

Re: [twitter-dev] Re: Oauth Echo and Drupal

2010-06-21 Thread Taylor Singletary
Awesome. There's much untapped potential in OAuth Echo beyond just the TwitPic, yFrog, etc. use cases. This is an area where you're going to have to be very exacting. Have you confirmed that the request you are building would actually execute against Twitter correctly before you've sent it

[twitter-dev] Re: Oauth Echo and Drupal

2010-06-21 Thread Tim Millwood
I have a test air app that posts to Twitpic perfectly fine using oAuth Echo, if I change the URL to my web app I get 401. Here are the headers I am passing to twitter to verify credentials. Am I missing some? [HTTP_X_AUTH_SERVICE_PROVIDER] =

[twitter-dev] Re: Oauth Echo and Drupal

2010-06-21 Thread Tim Millwood
Tried using Curl instead of drupal_http_request and got the following error. error setting certificate verify locations:\n CAfile: \/etc\/ssl\/ certs\/ca-certificates.crt\n CApath: none\n Not sure what that means On Jun 21, 4:40 pm, Tim Millwood t...@millwoodonline.co.uk wrote: I have a test

Re: [twitter-dev] Re: Oauth Echo and Drupal

2010-06-21 Thread Taylor Singletary
Hi Tim, That sounds like your machine might be having some issues connecting via SSL. Are you able to use Curl for any other SSL-based sites? Taylor On Mon, Jun 21, 2010 at 11:57 AM, Tim Millwood t...@millwoodonline.co.ukwrote: Tried using Curl instead of drupal_http_request and got the

[twitter-dev] Re: Oauth Echo and Drupal

2010-06-21 Thread themattharris
Hi Tim, That error you are getting is often thrown when curl tries to verify the remote host. You can bypass this check in PHP using: curl_setopt($link, CURLOPT_SSL_VERIFYPEER, FALSE); BUT this isn't ideal as it only hides the problem on your server. Instead, what you need to do is check the

[twitter-dev] Re: Oauth Echo and Drupal

2010-06-21 Thread Tim Millwood
curl_setopt($link, CURLOPT_SSL_VERIFYPEER, FALSE); This worked! Now I get the error Failed to open\/read local data from file\/ application. On Jun 21, 8:20 pm, themattharris thematthar...@twitter.com wrote: Hi Tim, That error you are getting is often thrown when curl tries to verify the

[twitter-dev] Re: Oauth Echo and Drupal

2010-06-21 Thread Tim Millwood
Removed curl_setopt($curl, CURLOPT_POST, 1); and it worked. Yay! http://drippic.com will be oAuth echo compatible within the next 24 hours. On Jun 21, 8:24 pm, Tim Millwood t...@millwoodonline.co.uk wrote: curl_setopt($link, CURLOPT_SSL_VERIFYPEER, FALSE); This worked! Now I get the error

[twitter-dev] Re: Oauth Echo and Drupal

2010-06-19 Thread Tim Millwood
So... I now have a test app which is sending oAuth Echo request successfully to Twitpic. If I change the URL to my web app I get a 401 error back from Twitter, so there is something I am doing wrong. I am getting the HTTP_X_AUTH_SERVICE_PROVIDER and HTTP_X_VERIFY_CREDENTIALS_AUTHORIZATION