Questions tagged [google-http-client]

This refers to the Google HTTP Client Library for Java.

The Google HTTP Client library is a flexible, efficient, and powerful Java client library for accessing any resource on the web via HTTP. It features a pluggable HTTP transport abstraction that allows any low-level library to be used, such as java.net.HttpURLConnection, Apache HTTP Client, or URL Fetch on Google App Engine. It also features efficient JSON and XML data models for parsing and serialization of HTTP response and request content. The JSON and XML libraries are also fully pluggable, including support for Jackson and Android's GSON libraries for JSON.

Supports these Java environments:

  • Java 7 or higher
  • Android 4.4 (Kit Kat)
  • Google App Engine
67 questions
0
votes
1 answer

HttpGet and DefaultHttpClient live cycle, At what step all of the data is retrieved from the server?

I'm a bit confused when making a http connection. I want to know at what place in code the data from the server has finished downloading on the phone, client? I have the following code, standard http java connection code: DefaultHttpClient client =…
user1796624
  • 3,665
  • 7
  • 38
  • 65
0
votes
1 answer

XML Parser for robospice-google-http-client?

I want to parse XML response using robospice-google-http-client. I can parse json response as follows. HttpRequest request = getHttpRequestFactory()// .buildGetRequest( new GenericUrl( url) ); request.setParser(new…
sooraj.e
  • 766
  • 2
  • 11
  • 26
0
votes
1 answer

Tasks API not working for google-http-client version greater than 1.12.0

I am using Google Tasks API and also Gogole Adwords API....To use Adwords API i have to use latest google-http-client jar...but when I use the latest jar, Tasks API doesnt seems to work. Here is the code I am using for tasks HttpTransport…
0
votes
1 answer

Using GoogleHttpClient to send multipart/form-data

I am using the google-http-client for java to handle http connections on Android. Everything is HunkyDori with it thus far until trying to send a multipart/form-data Content. I am a little bit stuck, I am thinking about adapting the MultipartContent…
Chris.Jenkins
  • 13,051
  • 4
  • 60
  • 61
0
votes
1 answer

google-http-java-client usage for android

Has anyone used google http client for android recently. I downloaded the latest version, but missing the jar. google-http-client-android3-1.12.0-beta.jar According to the doc, I need to import…
bsr
  • 57,282
  • 86
  • 216
  • 316
-1
votes
2 answers

Proper POJO for serializing JSON with Jackson library

So the question is how to properly build POJO for JSON that looks like this: {"1":{ "value_1":"something", "value_2":"something else"}, "2": { "value_1":"something", "value_2":"something else"}, "3": { …
Vlad Zbuker
  • 134
  • 1
  • 2
  • 10
-1
votes
1 answer

SOAP UI basic authentication in java

This is my Code: public class JavaSoapUi { public static void main(String[] args) throws Exception { String requestUrl = "myurl"; URLConnection connection =new URL(requestUrl).openConnection(); System.out.println( "orignal url: " +…
1 2 3 4
5