I am trying to work with the twitter library with a self-developed HTTP client in Java but unfortunately, I keep getting a 400 Bad Request although my message looks right.
I’ve reviewed the RFC2616 which defines the HTTP 1.1 standard but can’t find anything wrong.
This is the exact message I am sending to twitter:
GET /oauth/request_token HTTP/1.1
Authorization: OAuth oauth_callback=“oob”, oauth_signature=“St3qYjs54iZmHHEaGFkbSANxoT8%253D”, oauth_nonce=“0UuMpf1R%2FN5zU%2BAbm%2FzUeg%3D%3D”, oauth_version=“1.0”, oauth_signature_method=“HMAC-SHA1”, oauth_consumer_key=“myConsumerKey”, oauth_timestamp="1363508668"
(I used \r\n for all line breaks) But in a second I am receiving the response: <code>HTTP/1.1 400 Bad Request Content-Length: 0</code> Is anything wrong with my message? It works on test pages like http://www.httpbin.org , but maybe anyone has another test site? All help appreciated.