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
3 answers

Cancel AsyncHttpClient request when progress dialog is cancelled Android

I'm making requests from my android app to a server and I am using loopj's AsyncHttpClient library to do so. I've trying to cancel a request if the progress dialog is cancelled (on back key pressed) but what it is actually happening is, the…
Carla Urrea Stabile
  • 869
  • 1
  • 11
  • 35
0
votes
1 answer

Async Http Client - How to use

I am using the sample code from https://github.com/AsyncHttpClient/async-http-client and I'm trying to create a GET request: package asyncHttpClient; import com.ning.http.client.*; import java.util.concurrent.Future; public class…
user3676015
  • 53
  • 1
  • 11
0
votes
1 answer

make rest calls to other microservices with undertow

I have a simple websocket server using undertow. How to make HTTP calls to other microservices using UndertowClient from within this method? Any pointers ? @OnMessage public String onMessage(String message) { //Receive request -- make async…
basu76
  • 441
  • 10
  • 19
0
votes
2 answers

using Apache's AsyncHttpClient in a storm bolt

I have a bolt that is making an API call (HTTP Get) for every tuple. to avoid the need to wait for the response, I was looking to use the apache HttpAsyncClient. after instantiating the client in the bolt's prepare method, the execute method…
nyl66
  • 300
  • 6
  • 14
0
votes
1 answer

Upload of some file fails using HttpClient

I am trying to upload images as well as videos to my external server from the app. I Googled and found out HttpClient procedure is a good one, so I downloaded the library and execute the following code which normally works well for every file…
0
votes
2 answers

Use AsyncHttpClient in a Java Project with Maven

I'm creating a java project using Maven in Eclipse. I have to use the library AsyncHttpClient (https://github.com/AsyncHttpClient/async-http-client). I've already entered in the file pom.xml dependency for this library. I need the class…
user3676015
  • 53
  • 1
  • 11
0
votes
1 answer

Ning's AsyncHttpClient builds Futures way too slow (in this case)

In my code there is loop which builds the Futures, which is way to slow. It takes about hundreds of milliseconds to build just 1 Future. I'am just talking about setting up the Future object and not about getting the Reponse. Here's the…
Crayl
  • 1,883
  • 7
  • 27
  • 43
0
votes
2 answers

Connection reset by peer with async http client and netty

I've got a strange problem with Async http client with netty as the http provider, it's a play application calling a remote web service which we don't have access to. It's also important to note that the service is on a SSL-encrypted domain and only…
r0stig
  • 143
  • 1
  • 10
0
votes
1 answer

How could i dynamically pass the following data as json to asyncHTTPClient?

{     "Name”: ”ValidateUserName”,     “Message”: {         ”UserName”: ”p”     } } How could i make these parameters to json format to dynamically pass the parameters to AsyncHTTPClient post method. Using below method gives a wrong…
SMS
  • 558
  • 1
  • 9
  • 22
0
votes
1 answer

GridView adapter populating incorrectly onRefesh of SwipeRefreshLayout

I am having an issue with my GridView adapter - the first load works properly but every swipe to reload adds the first image into the empty grid view spots even know there is only one photo in the result. Pictures will help illustrate. So I…
0
votes
2 answers

SwipeRefreshLayout and AsyncHttpClient not working on first onCreate

I am using SwipeRefreshLayout to fetch data remotely which I use AsyncHttpClient to take care of the network side of things. Everything works as expected except for one scenario: the first onCreate launch of the app. The main activity: public class…
0
votes
1 answer

com.ning.http.client.AsyncHttpClient and NetworkOnMainThreadException

I'm using com.ning.http.client.AsyncHttpClient to open a web socket connection as follows. AsyncHttpClient client = new AsyncHttpClient(); try { client.prepareGet(url) .execute(new WebSocketUpgradeHandler.Builder() …
Ken
  • 30,811
  • 34
  • 116
  • 155
0
votes
2 answers

How to access Model property in MVC View?

I am struggling with an issue which seems very weird. 1) I have a class named 'Tumblr': public class Tumblr { public string BlogName { get; set; } public dynamic PhotosCollection { get; set; } } 2) I have a method in my controller: public…
Ammar Khan
  • 346
  • 1
  • 9
  • 27
0
votes
0 answers

Alfresco REST queries

in the context of tesing Alfresco Share queries (webscripts), I'm trying to call the search REST API from from the command line. I've tried curl (1), Async Http Client (2) or PowerShell-3.0 with the newly introduced cmdlet Invoke-RestMethod (3). The…
jgran
  • 1,111
  • 2
  • 11
  • 21
0
votes
3 answers

Android Asynchronous Http Client never seems to call back

I am trying to write an Android app that uses com.loopj.android.http.AsyncHttpClient. Although I wrote an Android app some years ago, I am very rusty, so please be gentle with me! In my app, I do a get, and none of the callback virtual methods are…
Nikki Locke
  • 2,759
  • 6
  • 29
  • 53
1 2 3
21
22