Questions tagged [asynchttpclient]

Asynchronous HTTP client library for Java

See the GitHub repo for more information. In essence:

AsyncHttpClient allows Java applications to easily execute HTTP requests and asynchronously process the HTTP responses. Feature-packed, wicked fast, and actively maintained.

323 questions
0
votes
1 answer

AsyncHttpClient not working with same data as in HttpClient to log into Salesforce

I'm having trouble trying to find out why I can't get through to Salesforce in my Android Application. The function is as follows: RequestParams params = new RequestParams(); params.put("grant_type", "password"); params.put("client_id",…
MRB
  • 11
  • 5
0
votes
2 answers

Extend AsyncHTTPClient to add default success callback

I know this must be simple, but I'm confused. I'm using AsyncHttpClient in my project. I want to create a new class, say AsyncHttpClient2 which will extend AsyncHttpClient. This class is currently adding a token to every request. I want that if the…
mrid
  • 5,782
  • 5
  • 28
  • 71
0
votes
1 answer

Upload multipart/form-data using AsyncHttpClient Library

I tried to upload image using AsyncHttpClient, my image uploaded sucsessfully but it can't open from my server, they said " This is not a valid bitmap file or its format is not supported." before I use AsyncHttpClient library, I can upload and see…
Menma
  • 799
  • 1
  • 9
  • 35
0
votes
1 answer

AsyncHttpClient does not use provided proxy data

I've written a query tool which at it's heart uses this block to gather info from an external url: AsyncHttpClientConfig proxiedCF = new DefaultAsyncHttpClientConfig.Builder().setUserAgent(pickUserAgent()).build(); AsyncHttpClient asyncHttpClient =…
to_the_nth
  • 61
  • 11
0
votes
0 answers

Getting SocketTimeOut exception from server

I am uploading reports that having some fields and and option to upload one image in that report. Now these reports are stored in my local database. And now suppose I have stored 5 reports that having images. Now sometimes it's working fine. but…
Shivam Sharma
  • 290
  • 2
  • 14
0
votes
1 answer

send data in raw using asynhttpclient

I m posting JSON in raw with this Url [URL I post data to][1] param is=eventName="countryList" codes private void testApp() { try { JSONObject jsonParams = new JSONObject(); jsonParams.put("key", "value"); StringEntity…
unknown
  • 91
  • 3
  • 14
0
votes
1 answer

http2 working example of apache http Client 5.0 alpha

I downloaded httpcomponents-client-5.0-alpha2 which supports http2. I copied the example from https://hc.apache.org/httpcomponents-client-5.0.x/httpclient5/examples/org/apache/hc/client5/http/examples/AsyncClientHttp2ServerPush.java to see how does…
ondway
  • 114
  • 1
  • 11
0
votes
1 answer

Create Completion handler interface like IOS

I am working on an android application to which I have integrated 20 APIs using AsyncHttpClient, for every API call I have to implement these two below methods to get the Response whether it is success hit or…
Santosh Yadav
  • 338
  • 2
  • 4
  • 15
0
votes
0 answers

why I use AsyncHTTPClient timeout?

@tornado.web.authenticated @tornado.web.asynchronous @tornado.gen.coroutine def post(self): try: files_body = self.request.files['file'] except: error_msg = u"failed to upload file" error_msg =…
0
votes
3 answers

android webservice call and parsing data lib

I am working on long term project i am using AsyncHttpClient of com.loopj.android.http is it ok? i am not having any issue to use this lib but i found this lib not updated from last 2 years so this lib reliable to use for long term project? if not…
Developer
  • 333
  • 2
  • 16
0
votes
1 answer

How to find the request for a particular response while using tornado library?

This is a reduced version of the code.I and making over 100 requests using http_client.fetch, I am getting the responses in random order,It is really important for me to know which response is for which request that I made.What changes should I make…
0
votes
0 answers

do not call on Success and on Failure

I don't know why this code doesn't call onSuccess and onFailure although server received the request. Please help. static AsyncHttpClient client = new AsyncHttpClient(); private void invokeWS(JSONObject params,String abc){ StringEntity entity…
Danh Danh
  • 3
  • 1
  • 6
0
votes
1 answer

Android studio does not allow to connect my application to internet

Hey I'm doing a web service login to my app, I've tried to connect to the internet, but it fails. I've used httpurl connection and at the time of execute openConnection() and getresponseCode() it omits the code in that line. I also tried with…
0
votes
1 answer

AsyncHttpClient post and get JSON response

I have to post a JSON to server and the server retrieves me another. I tried this but it doesn't work. When I debug, I never see the logs in on Success or onFailure: String url = "https://*******/sessions"; JSONObject requestObject…
user7652543
0
votes
1 answer

Apache Http Async Client

I am using Apache Async Http Client to make concurrent async API calls. I am wondering if it internally creates multiple threads to make concurrent requests
user1142317
  • 533
  • 1
  • 8
  • 20