HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost(
"http://xxxxxxx/geo/getlocation.php");
MultipartEntity reqEntity = new MultipartEntity(
HttpMultipartMode.BROWSER_COMPATIBLE);
reqEntity.addPart("longtiude", new StringBody(mylong));
reqEntity.addPart("latitude", new StringBody(mylat));
reqEntity.addPart("newtimeString", new StringBody(time));
reqEntity.addPart("dateString", new StringBody(date));
reqEntity.addPart("locationName", new StringBody(address));
httppost.setEntity(reqEntity);
HttpResponse response = httpclient.execute(httppost);
String responseBody = EntityUtils
.toString(response.getEntity());
Log.e("response", responseBody);
i am using httpclient to post on server using above code. but i got response like this
Your post request is not being received quickly enough please retry
i have add permissions and jar files correctly,also tried with basicnamevaluepair but same response. httpclient deprecated but it should work know...
i don't know the reason. what i am doing wrong. any help pls...