Oauth Authorization header problem with Nodejs


Hi All,

I am creating a node.js app that interacts with twitter REST API to get user’s information. I cannot get oauth to work as I’m receiving the
rate limit warning “Rate limit exceeded. Clients may not make more than 150 requests per hour”. But I am able to get the results with response status set to 200 OK

My GET request header looks like below,

{ host: 'api.twitter.com',
  authorization: 'OAuth cursor="-1",oauth_nonce="4AE03DF17BE44C098DB4D5CD074DA342",oauth_oauth_token="523050582-QizPw7WfKJVrUQ3N0SL3FDYnuO0Kv1i4W0ghjrK1",oauth_oauth_token_secret="X8VxSaRT7m5MWlDwWpnL7IEFCvM76AqvusgQb38c",oauth_signature_method="HMAC-SHA1",oauth_timestamp="1341476151",oauth_version="1.0",user_id="523050582",oauth_signature="a%2FkGKWeeJVNBG2vp3B4m2GQXYPE%3D"',
  'content-type': 'application/json',
  accept: 'application/json',
  'content-length': 0 }

I am able to get my Oauth call without any problem using java and I am getting this issue only with node.js. So my oauth_token seems to be valid and I believe there is something wrong with my header and signed request.

Can anyone please help me in finding what I am doing wrong here?