Top "Apache-httpclient-4.x" questions

A Java HTTP client library.

HTTPClient Example - Exception in thread "main" java.lang.NoSuchFieldError: INSTANCE

I am using HttpClient components from Apache for the following simple program and I see the below exception: Exception in …

java apache-httpclient-4.x
How do I properly import HttpClient from org.apache on Android using gradle build file?

I am seeing this error when I try to run "gradle build" WARNING: Dependency org.apache.httpcomponents:httpclient:4.2.3 is ignored …

android gradle apache-httpclient-4.x
Apache 4.1 HttpClient POST and GET

Can anyone provide an example of how I could use GET and POST (Apache 4.1 HttpClient)? Because most of the example …

java apache-httpclient-4.x
Apache HttpClient 4.1 - Proxy Authentication

I've been trying to configure the user and password for proxy authentication from the configured properties while using Apaches HttpComponent's …

java proxy apache-httpclient-4.x proxy-authentication
Apache HttpComponents HttpClient timeout

How do I set the connection timeout in httpcomponents httpclient? I have found the documentation at: http://hc.apache.org/…

java http apache-httpclient-4.x apache-httpcomponents
What is the difference between the setConnectionTimeout , setSoTimeout and "http.connection-manager.timeout" in apache HttpClient API

What is the difference between the three(marked as comments) : MultiThreadedHttpConnectionManager connManag = new MultiThreadedHttpConnectionManager(); HttpConnectionManagerParams managParams = connManag.getParams(); managParams.setConnectionTimeout(…

java apache-httpclient-4.x httpconnection
java.io.IOException: Attempted read from closed stream

I am making a HTTPPost call using Apache HTTP Client and then I am trying to create an object from …

java jackson apache-httpclient-4.x
How to send parallel GET requests and wait for result responses?

I'm using apache http client within spring mvc 3.2.2 to send 5 get requests synchronously as illustrated. How can I send all …

java spring-mvc apache-httpclient-4.x apache-httpcomponents
Invalid use of BasicClientConnManager: connection still allocated

I am making a call to REST URL and trying to measure how much time it is taking to get …

java rest apache-httpclient-4.x
java.lang.NoSuchFieldError: org.apache.http.message.BasicLineFormatter.INSTANCE from Mashape Unirest in Java application

I have a Maven Java project that uses Mashape Unirest for sending HTTP requests to other URLs. I am currently …

java maven apache-httpclient-4.x unirest mashape