Per the HTTP spec, chunked encoding may not be needed if "Connection:
close" is set and the TCP connection will be closed (FIN) to complete the
response body.
I am yet to write a test for this but the javadoc needs to address this
behavior..
This behavior can be supported using the existing API,
8218133: sun/net/www/protocol/http/ProtocolRedirect.java failed
with "java.net.ConnectException"
https://bugs.openjdk.java.net/browse/JDK-8218133
webrev:
http://cr.openjdk.java.net/~dfuchs/webrev_8218133/webrev.00/
Connection refused are usually a symptom of port reuse
issue, and usi