httpGet.setHeader("Host",url.getHost());// overwrite resolved IP
httpGet.setHeader("Host",url.getHost());// overwrite resolved IP, needed for shared web hosting DO NOT REMOVE, see http://en.wikipedia.org/wiki/Shared_web_hosting_service
returngetContentBytes(httpGet,maxBytes);
}
@ -288,7 +288,7 @@ public class HTTPClient {
if(currentRequest!=null)thrownewIOException("Client is in use!");
httpGet.setHeader("Host",url.getHost());// overwrite resolved IP
httpGet.setHeader("Host",url.getHost());// overwrite resolved IP, needed for shared web hosting DO NOT REMOVE, see http://en.wikipedia.org/wiki/Shared_web_hosting_service
httpHead.setHeader("Host",url.getHost());// overwrite resolved IP
httpHead.setHeader("Host",url.getHost());// overwrite resolved IP, needed for shared web hosting DO NOT REMOVE, see http://en.wikipedia.org/wiki/Shared_web_hosting_service
httpPost.setHeader("Host",url.getHost());// overwrite resolved IP
httpPost.setHeader("Host",url.getHost());// overwrite resolved IP, needed for shared web hosting DO NOT REMOVE, see http://en.wikipedia.org/wiki/Shared_web_hosting_service
httpPost.setHeader("Host",url.getHost());// overwrite resolved IP
httpPost.setHeader("Host",url.getHost());// overwrite resolved IP, needed for shared web hosting DO NOT REMOVE, see http://en.wikipedia.org/wiki/Shared_web_hosting_service