Running curl script straight from terminal. 401 Unauthorized, Failed to validate oauth signature and token


#1

What am I doing wrong here?? I’m trying to implement “Sign in with Twitter.” I’m running the curl script straight from terminal that it was generating for me, but getting the dreaded 401 Unauthorized. This was at the end of the message “Failed to validate oauth signature and token.” Not sure how to troubleshoot this further, here’s my script that I ran generated by the OAuth tool:

curl --request ‘POST’ ‘https://api.twitter.com/oauth/request_token’ --data ‘oauth_callback=http%3A%2F%2F127.0.0.1%2Ftos’ --header ‘Authorization: OAuth oauth_consumer_key=“fwxymN50E02J0lfQNH1Aw”, oauth_nonce=“54eb6b679a7086c5a9bdd8c49f405c14”, oauth_signature=“HE8sF01f2rs0yD%2Ft7tZHJ4VP5Oo%3D”, oauth_signature_method=“HMAC-SHA1”, oauth_timestamp=“1371921524”, oauth_token=“700985640-QQeYekDYqi0NkyubgbZuy4aHtRyjZtgXRu68PBsZ”, oauth_version=“1.0”’ --verbose

I’m running the curl script to try to do some basic troubleshooting. I figured if I can get a token back from Twitter, then I can move into further debugging my application.

Thanks for the help!