Hi Michael, Your Authorization header should start with "OAuth" as opposed to "Oauth"... but that may or may not be the problem here.
What are you using to generate the OAuth authorization header / signature? Are you using POST or GET in this context? It looks like your curl request is in the form of a GET -- perhaps your signature base string indicates a POST? Can you share what the base string looks like? Taylor On Thu, Sep 23, 2010 at 12:26 AM, Michael <mich...@glowingpixel.com> wrote: > Hello! > > I have been banging my head for a few hours over this, and can't seem > to figure it out. When requesting the unauthorized request token from > OAuth, I can't seem to be able to get past the "Failed to validate > oauth signature and token" error. I have used that Google tool to > verify that I am signing it properly. I think it's probably because > I'm not using cURL correctly? > > Here is an example header I am generating: > > Authorization: Oauth oauth_callback="http%3A%2F > %2Fwww.callbackaddress.com%2Ftwitter > > %2Ftwitter.php",oauth_consumer_key="MYKEY",oauth_nonce="3e3ab32b8bdf10d739d923c02cfe0ca9",oauth_signature="iU53Edz7HGkQRe4Dt6MVsEVlNGk > %3D",oauth_signature_method="HMAC- > SHA1",oauth_timestamp="1285226385",oauth_version="1.0" > > In PHP that's assigned to a $header variable, then I execute this, > which is probably where it fails: > --- > $ch = curl_init(); > curl_setopt($ch, CURLOPT_URL, $request_url); > curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); > curl_setopt($ch, CURLOPT_HTTPHEADER, array($header,"Content-Type: > application/x-www-form-urlencoded")); > $result = curl_exec($ch); > --- > > What more do I need to do? Thanks for any help. > > -- > Twitter developer documentation and resources: http://dev.twitter.com/doc > API updates via Twitter: http://twitter.com/twitterapi > Issues/Enhancements Tracker: > http://code.google.com/p/twitter-api/issues/list > Change your membership to this group: > http://groups.google.com/group/twitter-development-talk > -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk