Javascript request token script not working, response headers included


#1

Hi all I can’t figure this one out.

I’ll post my secret here and once I figure it out with peoples help Ill re-get new secret.

Please help me I can’t figure out how to properly get request token.
Here is my signature generation stuff:

ParameterString = oauth_callback=http%253A%252F%252Fwww.floppers.comyr&oauth_consumer_key=AjONvgAdbD8YWCtRn5U9yA&oauth_nonce=2yUrmLPQ&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1392896815&oauth_version=1.0


SignatureBaseString = POST&https%3A%2F%2Fapi.twitter.com%2Foauth%2Frequest_token&oauth_callback%3Dhttp%25253A%25252F%25252Fwww.floppers.comyr%26oauth_consumer_key%3DAjONvgAdbD8YWCtRn5U9yA%26oauth_nonce%3D2yUrmLPQ%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1392896815%26oauth_version%3D1.0

SigningKey = jrcJKxvJ92NeeV48RL1lotN9PigbxCCbqUkKj237yio&

Here is my headers

/*******************REQUEST HEADERS**************/
https://api.twitter.com/oauth/request_token

POST /oauth/request_token HTTP/1.1
Host: api.twitter.com
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Authorization: OAuth oauth_callback="http%3A%2F%2Fwww.floppers.comyr", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1392896815", oauth_version="1.0", oauth_consumer_key="AjONvgAdbD8YWCtRn5U9yA", oauth_signature="R89MmEZ1xF1Kzbe9M0rCEKOHT0Q%3D", oauth_nonce="2yUrmLPQ"
Cookie: guest_id=v1%3A135406647201567953; __utma=43838368.2056235097.1354513832.1392789052.1392792429.69; __utmz=43838368.1392792429.69.37.utmcsr=bleacherreport.com|utmccn=(referral)|utmcmd=referral|utmcct=/articles/1964891-chicago-bulls-reportedly-unwilling-to-trade-mike-dunleavy-jr; __utmv=43838368.lang%3A%20en; twll=l%3D1392746062; dnt=1; remember_checked=0; remember_checked_on=0; __utmc=43838368; _twitter_sess=BAh7CzoPY3JlYXRlZF9hdGwrCG5QIkZEAToJdXNlcmwrB7XFMFs6DGNzcmZf%250AaWQiJWU4ZWY1ODg5Mzg3ZmRlNWUxOTZlN2Q3YTdkOTA4MzkzOgdpZCIlN2Vi%250ANDcwMjk4ZDQzMTc0NDZiNDA4MTc5YWIzM2JmMWMiCmZsYXNoSUM6J0FjdGlv%250AbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhhc2h7AAY6CkB1c2VkewA6EHN0%250AYXlfc2VjdXJlVA%253D%253D--2beff0f66bc73ae99ae7c7b055f13dd5741a7c6e; auth_token=2b5b9a6e8278b8f95eb0cc5e901649d4160002ea; secure_session=true; twid=u%3D1529922997%7CJV%2FQtNRmsHQUdTERdWtvisTLc4A%3D; pid="v3:1392896582747091194339024"
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
Content-Length: 0

/*******************RESPONSE HEADERS**************/
HTTP/1.1 401 Unauthorized
Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0
Content-Encoding: deflate
Content-Length: 56
Content-Type: text/html; charset=utf-8
Date: Thu, 20 Feb 2014 11:44:24 GMT
Expires: Tue, 31 Mar 1981 05:00:00 GMT
Last-Modified: Thu, 20 Feb 2014 11:44:24 GMT
Pragma: no-cache
Server: tfe
Set-Cookie: _twitter_sess=BAh7CzoPY3JlYXRlZF9hdGwrCG5QIkZEAToJdXNlcmwrB7XFMFs6DGNzcmZf%250AaWQiJWU4ZWY1ODg5Mzg3ZmRlNWUxOTZlN2Q3YTdkOTA4MzkzOgdpZCIlN2Vi%250ANDcwMjk4ZDQzMTc0NDZiNDA4MTc5YWIzM2JmMWM6EHN0YXlfc2VjdXJlVCIK%250AZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsA%250ABjoKQHVzZWR7AA%253D%253D--92f17cdcba1117e12a90a3de5598708d65247b5a; domain=.twitter.com; path=/; secure; HttpOnly
Status: 401 Unauthorized
Strict-Transport-Security: max-age=631138519
Vary: Accept-Encoding
X-Frame-Options: SAMEORIGIN
x-mid: 45d68e9c353c893883ae5541ee6d4f11a111388e
X-Runtime: 0.01375
x-transaction: c4049726053e231c
x-ua-compatible: IE=10,chrome=1
X-XSS-Protection: 1; mode=block
X-Firefox-Spdy: 3.1