Top "Apache-httpcomponents" questions

A Java library for interacting with HTTP services.

Ignoring SSL certificate in Apache HttpClient 4.3

How to ignore SSL certificate (trust all) for Apache HttpClient 4.3? All the answers that I have found on SO treat …

java ssl apache-httpcomponents
Apache HttpClient Android (Gradle)

I have added this line to my build.gradle compile group: 'org.apache.httpcomponents' , name: 'httpclient-android' , version: '4.3.5' and …

android gradle android-studio apache-httpcomponents multipartentity
java.lang.NoClassDefFoundError:failed resolution of :Lorg/apache/http/ProtocolVersion

I'm encountering this error when I use Android Studio to build my app. The APK is compiled, but when I …

android google-maps gradle apache-httpcomponents android-9.0-pie
Apache HttpClient (4.1 and newer): how to do basic authentication?

How do I add basic authentication for the default client of the httpClient library? I have seen examples where they …

java apache-httpclient-4.x apache-httpcomponents
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
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
Is there a way to get the String value of an HttpEntity when EntityUtils.toString() returns an exception?

I keep running into this situation where I get back a bad HTTP response (like a 400) but cannot look at …

java apache-httpclient-4.x apache-httpcomponents
Using Spring REST template, either creating too many connections or slow

I have a RESTful service that works very fast. I am testing it on localhost. The client is using Spring …

java spring rest http apache-httpcomponents
Default timeout for HttpComponent Client

I can't find any documentation on the default httpParams for httpclient 4.1 ? What's the default socket timeout when I do a …

java apache-httpcomponents
Setting time out in apache http client

I'm using Apache http client 4.3.2 to send get requests. What I have done is: private final RequestConfig requestConfig = RequestConfig.custom() .…

java timeout apache-httpcomponents