This might give you some helpful information:
OAuthResponseMessage response = ...
responseCode = response.getHttpResponse().getStatusCode();
if (responseCode != 200) {
Map<String, Object> dump = response.getDump();
System.out.println(dump.get(HttpMessage.REQUEST));
System.out.println("---------------");
System.out.println(dump.get(HttpMessage.RESPONSE));
System.out.println("---------------");
}
You can use
http://oauth.googlecode.com/svn/code/javascript/example/signature.html
to check the signature.
On Mar 5, 4:52 pm, thnguyen <[email protected]> wrote:
> I'm using John Kristian's Java OAuth library and am running into a
> problem with POST requests. Signature validation is failing for POST
> requests containing querystring parameters. The requests contains
> Content-Type: application/xml with an XML payload.
>
> When I remove the querystring parameter from the request the signature
> validation succeeds. Does anyone have any insight on why signature
> validation fails when adding a querystring parameter?
>
> I've pasted my code to test the OAuth protected resource
> here:http://pastie.org/856701
--
You received this message because you are subscribed to the Google Groups
"OAuth" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/oauth?hl=en.