Top "Java-http-client" questions

This tag should be used for questions which relate specifically to the new JDK 11 `java.

How to upload a file using Java HttpClient library working with PHP

I want to write Java application that will upload a file to the Apache server with PHP. The Java code …

java php java-http-client
Allow insecure HTTPS connection for Java JDK 11 HttpClient

Sometimes it is needed to allow insecure HTTPS connections, e.g. in some web-crawling applications which should work with any …

java java-11 java-http-client
How to log request/response using java.net.http.HttpClient?

The HttpClient introduced experimentally in Java 9 is now stable in Java 11, but not surprisingly, very few projects seem to actually …

java logging java-9 java-11 java-http-client
Deserializing JSON using Java 11 HttpClient and custom BodyHandler with Jackson halts and will not proceed

I have a problem with deserializing JSON to custom object directly using Java 11 HttpClient::send with custom HttpResponse.BodyHandler. I …

java jackson java-11 java-http-client
How to map a JSON response to a Java class using Java 11 HttpClient and Jackson?

I'm new to the Java 11 HttpClient and would like to give it a try. I have a simple GET request …

java http httpclient java-11 java-http-client
Java 11: New HTTP client send POST requests with x-www-form-urlencoded parameters

I'm trying to send a POST request using the new http client api. Is there a built in way to …

java java-http-client
Java 11 HttpClient not sending basic authentication

I wrote the following HttpClient code, and it did not result in an Authorization header being sent to the server: …

java http java-11 java-http-client
Connections leaking with state CLOSE_WAIT with HttpClient

We are using JDK11 java.net.http HTTP client to get data from an API. After we receive the response …

java java-11 connection-leaks java-http-client
How to handle HTTP/2 GOAWAY with HttpClient?

I am trying to continuously send GET and POST requests to a REST API every few minutes. The issue is …

java http2 java-11 java-http-client