nguyenducnhaty / google-http-java-client

Automatically exported from code.google.com/p/google-http-java-client
0 stars 0 forks source link

multi file post request and get request with authentication+ parsing response headers+setting input headers #60

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Can you provide code samples for the following scenarios-

(1) GET request with base 64 auth
(2) GET/POST requests with specific headers being set(the values for those 
headers will be provided)
(3) POST request with one or more files being uploaded- This also has two 
scenarios--
 (a) One or more files are plain text files.
 (b) One or more files are binary files.
(4) Parsing response obtained by a request- also parsing through response 
headers...

I have a scenario where the Apache HTTP client (an old version 3.x.x of it) is 
being used... I want to replace it with the Google HTTP Java client so that I 
can use that application in Google App Engine. However all possible types of 
requests are being made through the Apache HTTP client, and there is a dire 
need for samples showing the above scenarios, for me to be able to use this 
library.

Thanks,
Arvind.

Original issue reported on code.google.com by arv...@taurusseo.com on 17 Jan 2012 at 11:34

GoogleCodeExporter commented 9 years ago
Great ideas for samples.  For #4, please specify the data type, e.g. JSON or 
XML.

You may want to browse the samples in the sister projects:

http://code.google.com/p/google-oauth-java-client/source/browse?repo=samples
http://code.google.com/p/google-api-java-client/source/browse?repo=samples

Original comment by yan...@google.com on 17 Jan 2012 at 1:18

GoogleCodeExporter commented 9 years ago
Hello,

For #4, it would be great if you could provide samples that parse through each 
of the following response types- HTML, JSON and XML. Also can I use your 
library in place of an XML-RPC client, i.e. to make XML-RPC Calls? If that is 
possible, then kindly also provide a sample for making XML-RPC calls.

Thanks,
Arvind.

Original comment by arv...@taurusseo.com on 18 Jan 2012 at 12:36

GoogleCodeExporter commented 9 years ago

Original comment by rmis...@google.com on 14 Jan 2013 at 3:26