String h_hdr = (ho_idx >= 0) ? hdrs[ho_idx].getValue().trim() : Host;
if (Port != URI.defaultPort(getProtocol()))
dataout.writeBytes("Host: " + h_hdr + ":" + Port + "\r\n");
else
// Netscape-Enterprise has some bugs...
dataout.writeBytes("Host: " + h_hdr + "\r\n");
/*
* What follows is the setup for persistent connections. We default to doing
* persistent connections for both HTTP/1.0 and HTTP/1.1, unless we're using
* a proxy server and HTTP/1.0 in which case we must make sure we don't do