Using HttpClient and HttpPost in Android with post parameters
I'm writing code for an Android application that is supposed to take data, package it as Json and post it to a web server, that in turn is supposed to respond with json. Using a GET request works fine, but for some reason using POST all data seems to get stripped and the server does not receive anything. Here's a snippet of the code: HttpParams params = new BasicHttpParams(); HttpConnectionParams.setConnectionTimeout(params, 5000); HttpConnectionParams.setSoTimeout(params, 5000); DefaultHttpClient httpClient = new DefaultHttpClient(params); BasicCookieStore cookieStore = new BasicCookieStore()