Unabled to request an OAth token with Apache HttpClient on Android
I'm trying to get an OAuth request token as described here: https:/
If I use the tool Fiddler to send a raw HTTPS request everything works fine for me and I get a token, but if I use the Apache HTTPClient lib for Java I get a 401 Unauthorized.
I debuged my request and this is what I got:
>> "POST /+access-token HTTP/1.1[EOL]"
>> "Content-Length: 76[EOL]"
>> "Content-Type: application/
>> "Host: edge.launchpad.
>> "Connection: Keep-Alive[EOL]"
>> "[EOL]"
>> "oauth_
<< "HTTP/1.1 401 Unauthorized[EOL]"
<< "Date: Thu, 13 May 2010 10:22:46 GMT[EOL]"
<< "Server: zope.server.http (HTTP)[EOL]"
<< "X-Powered-By: Zope (www.zope.org), Python (www.python.
<< "X-Content-
<< "Content-Length: 0[EOL]"
<< "Vary: Cookie,
<< "Content-Type: text/plain;
<< "WWW-Authenticate: OAuth realm="https:/
<< "Via: 1.1 edge.launchpad.
<< "Keep-Alive: timeout=15, max=100[EOL]"
<< "Connection: Keep-Alive[EOL]"
<< "[EOL]"
I can't see anything wrong in my Request. Maybe someone else can.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Christopher Perrin
- Solved:
- Last query:
- Last reply: