thanhha1703 / oauth

Automatically exported from code.google.com/p/oauth
0 stars 0 forks source link

Enhancement submission, support for PUT requests #53

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Here is a patch that adds support for PUT requests for the java client.  At the 
moment if a request is 
not a POST it is assumed to be a GET.

Original issue reported on code.google.com by perd...@gmail.com on 23 Oct 2008 at 7:15

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by jmkrist...@gmail.com on 23 Oct 2008 at 3:56

GoogleCodeExporter commented 9 years ago
One can of course bypass the OAuthClient classes entirely, while using the rest 
of 
the library to sign requests.

If we're going to beef up OAuthClient, we might as well add support for HTTP 
DELETE 
and binary request bodies with a Content-Type.

Original comment by jmkrist...@gmail.com on 23 Oct 2008 at 10:44

GoogleCodeExporter commented 9 years ago
Of course you can bypass the client, but this should be useful for a fair 
amount of use cases e.g. 
get/put/post/delete of small json/xml requests.

Here is an updated patch with DELETE support.  The binary request feature might 
a bit more intrusive of a patch, 
I'll file a separate issue when it is written.

Thank you!

Original comment by perd...@gmail.com on 24 Oct 2008 at 5:23

Attachments:

GoogleCodeExporter commented 9 years ago
committed PUT support in -r698.

Original comment by jmkrist...@gmail.com on 27 Oct 2008 at 6:32

GoogleCodeExporter commented 9 years ago
Added support for DELETE in -r699.

Issue 54 requests support for binary bodies.

Original comment by jmkrist...@gmail.com on 27 Oct 2008 at 6:50