Top "Apache-httpclient-4.x" questions

A Java HTTP client library.

JsonParseException : Illegal unquoted character ((CTRL-CHAR, code 10)

I'm trying to use org.apache.httpcomponents to consume a Rest API, which will post JSON format data to API. …

java json character-encoding apache-httpclient-4.x
Java HttpRequest JSON & Response Handling

I have looked at several other questions, but I still don't fully understand this. I want to POST a JSON …

java json http apache-httpclient-4.x
How to get HttpClient returning status code and response body?

I am trying to get Apache HttpClient to fire an HTTP request, and then display the HTTP response code (200, 404, 500, etc.) …

java http apache-httpclient-4.x
How to set TLS version on apache HttpClient

How can I change the supported TLS versions on my HttpClient? I'm doing: SSLContext sslContext = SSLContext.getInstance("TLSv1.1"); sslContext.init( …

java ssl apache-httpclient-4.x
How to add,set and get Header in request of HttpClient?

In my application I need to set the header in the request and I need to print the header value …

java http servlets httpclient apache-httpclient-4.x
fix java.net.SocketTimeoutException: Read timed out

I have a RESTful server which takes an http POST input from client to vote up songs on server. I …

java post restlet apache-httpclient-4.x
Apache HttpClient 4.0.3 - how do I set cookie with sessionID for POST request?

can you tell me how to store jsessionid in cookie, so it can be passed to the servlet with post …

java post cookies apache-httpclient-4.x
How do I save a file downloaded with HttpClient into a specific folder

I am trying to download a PDF file with HttpClient. I am able to get the file but i am …

java apache-httpclient-4.x
How can I get the cookies from HttpClient?

I am using HttpClient 4.1.2 HttpGet httpget = new HttpGet(uri); HttpResponse response = httpClient.execute(httpget); So, how can I get the …

java cookies apache-httpclient-4.x
Apache HttpClient making multipart form post

I'm pretty green to HttpClient and I'm finding the lack of (and or blatantly incorrect) documentation extremely frustrating. I'm trying …

java multipartform-data apache-httpclient-4.x