Questions tagged [androidhttpclient]

Implementation of the Apache DefaultHttpClient that is configured with reasonable default settings and registered schemes for Android This class was deprecated in API level 22 (Android 5.1). Please use URLConnection and friends instead. The Apache HTTP client is no longer maintained and may be removed in a future release. Please visit this webpage for further details.

Implementation of the Apache DefaultHttpClient that is configured with reasonable default settings and registered schemes for Android.

Warning: This class was deprecated in API level 22 (Android 5.1).
Please use URLConnection and friends instead. The Apache HTTP client is no longer maintained and may be removed in a future release. Please visit this webpage for further details.

Useful links

418 questions
1
vote
0 answers

Android defaultHttpClient post request with gzip

I'm trying to send post request from my android client to tomcat server containing a string of size 1MB+. I enabled GZIP in server.xml and Iv'e tried several method to compress that string from the client, but it seems that it doesn't change it size…
user_s
  • 1,058
  • 2
  • 12
  • 35
1
vote
3 answers

androdi upload bitmap to c# server from device

I have a bitmap or lets call it a file that I want to upload to my c# server, this bitmap (file) is captured via camera and saved into the sd card, but I have to no idea how exactly should I send it to my c# server. I don't know exactly what should…
arash moeen
  • 4,533
  • 9
  • 40
  • 85
1
vote
1 answer

What is the use of Volley API in android?

In my android apps development use instead of HTTPs go for volley API some one suggested me what is the difference between volley API and HTTPs thans!!
BSK
  • 65
  • 1
  • 1
  • 10
1
vote
0 answers

How to stay logged in using a HttpClient on Android?

I have a problem with Androids HttpClient / HttpRequest that's really giving me headache. The program should login on a website (it's actually working and login is successful). After it's logged in, I want it to get another path of the site, but I…
Zazama
  • 275
  • 2
  • 10
1
vote
0 answers

Sending files and data using POST with MultipartEntity (HttpURLConnection)

I am sending data using the following code. The problem is that at server side only the the bottom 2 values are beign recieved and the top value is undefined ie reqEntity.addPart("eid", "1"); -->this value gives undefined…
Amardeepvijay
  • 1,626
  • 3
  • 17
  • 47
1
vote
1 answer

AsyncHttpClient﹕ Passed contentType will be ignored because HttpEntity sets content type

Im trying to post some data using the android httpclient (loopj).I add some json data in its body and i set request header.But it shows AsyncHttpClient﹕ Passed contentType will be ignored because HttpEntity sets content type. Does any one know how…
1
vote
1 answer

How to get response based on pagination in url android?

I have a url as eg: http://movie.org/movie/popular?api_key=c68&page=1 Right now I am able to display for page 1 alone,my question is how to change page and display in listview when scrolling. Right now I am able to display for first page. But I…
Shadow
  • 6,864
  • 6
  • 44
  • 93
1
vote
1 answer

Android: Get file from PHP Server by HttpResponse

My android application successfully sends files to a remote php server. Until know the server responds by sending back a simple string: PHP Code // if a file was posted if($_FILES && $_POST){ if(move_uploaded_file($file, $dir)) { echo…
null
  • 1,369
  • 2
  • 18
  • 38
1
vote
5 answers

Send "PUT" request in Android to rest api

I have an android application that consulting and insert in a web service rest-ful. all this through apache HTTPClient and JSON. so for example I insert a new user into db. HttpClient httpclient = new DefaultHttpClient(); // 2. make POST…
Emmanuelguther
  • 1,039
  • 4
  • 19
  • 29
1
vote
1 answer

UnknownHostException When Host is Reachable

I have some Android code that I'm hoping to pull data off of a webpage and display it as text. Unfortunately, I'm getting this error, even though it has proper permissions and everything: java.net.UnknownHostException: Unable to resolve host…
Holabola
  • 143
  • 1
  • 3
  • 11
1
vote
1 answer

android http request execution is slow randomly

I'm using the below code to fetch some data from server: (it happens on button onclick) @Override protected ArrayList doInBackground(String... arg0) { ArrayList result = new ArrayList(); JSONArray array = new…
1
vote
2 answers

Android: Can not cancel an Async Task

I have an Activity A which has a button. Up on tapping on the button, it opens up another Activity B, which displays data fetched from server (http). The API version that I am using is 15. As soon as the Activity B is opened, in onCreate() method, I…
1
vote
1 answer

HttpGet response string truncated

I am using httpGet. But I am getting an incomplete response. Just for testing I used another URL and for that my code works fine, but for my actual link my response is truncated. I have referred the this solution, but it didn't work for me. Please…
qulfille
  • 208
  • 3
  • 13
1
vote
1 answer

InterruptedIOException using httpClient 4.3.3 for Android

I've currently got an app that has high throughput and I'm using httpClient 4.3.3 provided by Apache themselves. I have an issue where I keep getting an InterruptedIOException after a while. The cause is a ConnectionShutdownException. I'm wondering…
Etienne
  • 1,197
  • 10
  • 19
1
vote
0 answers

Post request using loopj AysyncHttpClient android library

When trying to post into a google cloud endpoint via REST I get org.apache.http.client.HttpResponseException: Bad Request when trying using http://loopj.com/android-async-http/ on my android app. I have made this post in POSTMAN REST client without…