Closed GoogleCodeExporter closed 9 years ago
Original comment by morten.f...@gmail.com
on 16 May 2009 at 2:54
You can set parameters and headers separately. You can change the given
example to:
request = accessor.newRequestMessage(OAuthMessage.DELETE, url, null);
request.getHeaders().addAll(p.entrySet()); // HTTP request headers
response = ... (as above)
Warning: HTTP request headers aren't signed; that is, the headers aren't
included in
the OAuth Signature Base String. So, they're vulnerable to tampering.
ParameterStyle.AUTHORIZATION_HEADER is designed for a different purpose; that
is to
send the OAuth parameters in an HTTP request header named 'Authorization', as
specified in OAuth Core section 5.4.1 (Authorization Header).
Original comment by jmkrist...@gmail.com
on 29 May 2009 at 4:55
Original issue reported on code.google.com by
gubler.d...@gmail.com
on 15 Apr 2009 at 10:01