When I trying to do Oauth authentication with jquery it always receives a
empty response. I'm doing this:

$.ajax({
   beforeSend: function(xhr) {
     xhr.setRequestHeader("Authentication", authorizationHeader)
   },
   url:'https://twitter.com/oauth/request_token',
   type: 'get',
   contentType: 'application/x-www-form-urlencoded',
   async: false,
   success: function(msg){
     alert( "Data: " + msg );
   }
});

//output --> "Data: "

Can someone help me?
-- 
best regards,

Daniel Silva

Reply via email to