asynchttpclient Questions

6

Solved

I am posting a string to a web server this way: private async Task makeRequest(string url, string postData) { HttpClient client = null; HttpResponseMessage response = null; try { client = ne...

4

Solved

I want to call one specific url via WebView. The page can only be called after user already logged in. I use AsyncHttpClient library to perform login call. Once after successfully logged in , loadi...
Massacre asked 14/10, 2015 at 8:39

4

I have a curl request that looks like this: curl -i -XPOST 'http://my_url:port/write?db=myDb' -u user:xxxxx --data-binary 'FieldName,host=M.233 value=52.666 timestamp' I'm trying to post this re...
Protrusion asked 12/4, 2017 at 15:32

2

Solved

I am looking for a Scala WebSocket client. There are a number of examples, gists and artefacts but most of them don't work (anymore?) and none of them seem to be maintained. A Scala wrapper around ...
Hacienda asked 8/7, 2015 at 15:44

2

Here's the code I am using AsyncHttpClient asyncHttpClient = asyncHttpClient(); RequestBuilder builder = new RequestBuilder("PUT"); Request request = builder.setUrl("http://localhost:8080") .setB...
Pawnbroker asked 19/9, 2018 at 8:54

2

Solved

I'm evaluating AsyncHttpClient for big loads (~1M HTTP requests). For each request I would like to invoke a callback using the AsyncCompletionHandler which will just insert the result into a blocki...
Dissimilarity asked 16/2, 2016 at 11:31

1

Solved

I use AsyncHttpClient library for async non blocking requests. My case: write data to a file as it is received over the network. For download file from remote host and save to file I used default ...
Culpa asked 31/5, 2019 at 15:20

2

Solved

Input PCollection is http requests, which is a bounded dataset. I want to make async http call (Java) in a ParDo , parse response and put results into output PCollection. My code is below. Getting ...
Scraperboard asked 17/4, 2018 at 18:20

2

I have no idea how to POST JSON with HttpClient. I find some solution, like this, but I have to use HttpClient, cause of async and have to add a header. This is my code below. Any idea how to fix ...
Leviticus asked 12/2, 2015 at 2:54

2

Solved

Context: I am working on a Spark streaming job that writes data to InfluxDB, using this library. Here's the environment. Scala 2.11.8 Spark 2.1.0 (Dockerized standalone cluster) relevant depend...
Cryotherapy asked 17/1, 2017 at 5:29

3

Solved

I'm trying to create asynchronous rest call in Android using a library com.loopj.android.http.AsyncHttpClient however, i'm unable to implement AsyncHttpResponseHandler's overridden methods because ...

2

Solved

I got a structure which can basically be summarized as: outside user makes a rest request to akka-http server akka-http makes a request(query?) to a (some)data source using asynchttpclient akka-h...
Clamshell asked 24/3, 2017 at 17:48

3

Solved

I am using com.loopj.android:android-async-http:1.4.9 for my request to server. It was working fine until I SSL/TLS is required in my server. So I need to modify my AsyncHTTPClient to use HTTPS in ...
Berti asked 15/3, 2017 at 9:25

1

Solved

I'm trying to understand the difference between: setRequestTimeout - Set the maximum time in millisecond an AsyncHttpClient waits until the response is completed. setReadTimeout - Set the maximum...
Teresitateressa asked 7/7, 2016 at 3:4

1

Solved

On Async Http Client documentation I see how to get a Future<Response> as the result of an asynchronous HTTP Get request simply doing, for example: AsyncHttpClient asyncHttpClient = new Def...
Koodoo asked 25/5, 2016 at 10:50

4

Solved

I have a method and it calls another method, for which the result is not important. To be exact, it is a POST request to a web service and the result is processed in that method and not in the call...
Devereux asked 24/12, 2015 at 8:24

3

I am facing some problems when using the HttpClient class to access to a Delicious API. I have the following code: try { const string uriSources = "https://api.del.icio.us/v1/tags/bundles/all?pri...

3

I think I've managed to make a test that shows this problem repeatably, at least on my system. This question relates to HttpClient being used for a bad endpoint (nonexistant endpoint, the target is...
Poucher asked 8/11, 2013 at 20:52

1

Solved

Using the AsyncHttpClient with Netty provider will prevent the main program to terminate when we execute an asynchronous request. For instance, the following program terminates after the println, o...
Ketubim asked 29/5, 2015 at 16:28

1

Solved

I have the following code static void Main(string[] args) { string url = "http://www.google.com"; Console.WriteLine(GetUrl(url).Result); // throws TaskCanceledException Console.WriteLine(GetUrl...
Depersonalize asked 19/12, 2014 at 17:31

3

Solved

I'm trying to call PostAsync method using System.Net.Http.HttpClient from the Web API. I get the following error: System.AggregateException "A task was canceled." Task: Id = 1, Status = Sys...

2

Solved

I'm constructing an AsyncHttpClient like this: public AsyncHttpClient getAsyncHttpClient() { AsyncHttpClientConfig config = new AsyncHttpClientConfig.Builder() .setProxyServer(makeProxyServer())...
Yanirayank asked 13/11, 2013 at 22:14

2

Solved

I am pretty new to Apache http client and am trying to get status code from a website. Found the following example on Apache http tutorial. import java.util.concurrent.CountDownLatch; import org.a...
Mcgough asked 12/2, 2014 at 12:11

1

Solved

I started having problems accessing a https://ws.plimus.com/ with async-http-client a few days ago. I get a "General SSLEngine problem" messages, and in the stack trace I can see it is caused by j...
Legroom asked 8/1, 2014 at 6:11
1

© 2022 - 2025 — McMap. All rights reserved.