I've been using the Java OAuth library for quite some time, and I've encountered situations where when remote applications require PUT with parameter information in the BODY (as oppose to HEADER or QUERYSTRING), the OAuth code doesn't work. I did look into the HttpClient implementation. It seems the PUT method with parameter in BODY is not supported. I do see there are applications that uses this type of paradigm, such as updating status to MySpace, and updating information to other social networks.
The version of OAuth I'm using is from Oct 27, 2008. I briefly looked at the latest version of the library, I see there are changes, but not sure if PUT with BODY is supported. Can anyone verify this? Thank you! On Mar 24, 2:11 pm, [email protected] wrote: > OAuth parameters may be placed in an Authenticate header or a URL > query string, but not both.http://oauth.net/core/1.0#consumer_req_param > OAuthScheme could contain an OAuth.ParameterStyle to determine where > it places OAuth parameters. If they go in the query string, I guess > it would do something like request.setURI(OAuth.addParameters > (request.getURI(), ...)). The query string's not a header, I think. > > I don't know a good reason to support parameters in a PUT body. I > don't know any applications that do this. OAuth doesn't specify how > applications send their parameters. > > On Mar 23, 11:12 am, Paul Austin <[email protected]> wrote: > > > Does the OAuth spec support using the PUT body? > > > I think it should be possible to add the parameters to the query > > string also. For this you would get the query string request header > > (for GET) and then add the parameters and then set the header to the > > new value. The OAuthSchemeFactory could have boolean properties which > > would allow the user to select using the Authenticate header, the > > query string, or both. > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
