POST Request Error with Google HTTP Java Client

view story

http://stackoverflow.com – I'm using the Google Http Java Client library in my Android project. I have the following basic code for a POST request to the server on an Android app: final GenericUrl url = new GenericUrl(postURL); final HttpContent content = new JsonHttpContent(JSON_FACTORY, jsondata); // requestFactory initiated statically as class object HttpRequest request = requestFactory.buildPostRequest(url, content); HttpResponse response = request.execute(); The 'RequestFactory' is defined as static in the class that holds the POST method. static final HttpRequestFactory requestFactory = (HowTos)