Attempt a java.net.http client GET to an HTTPS target using a proxy which requires authentication.
HttpResponse.statusCode() returns 407 but HttpResponse.body() returns null.
Works as expected with http:// target.
Since it works correctly with http:// target this seems like a bug and not a documentation gap. It would be onerous to test the result of body() for null every time.
Have seen issue with BodyHandlers.ofString() and BodyHandlers.ofInputStream()
HttpResponse.statusCode() returns 407 but HttpResponse.body() returns null.
Works as expected with http:// target.
Since it works correctly with http:// target this seems like a bug and not a documentation gap. It would be onerous to test the result of body() for null every time.
Have seen issue with BodyHandlers.ofString() and BodyHandlers.ofInputStream()
- links to
-
Review(master)
openjdk/jdk/28232