Proxy fixes

This commit is contained in:
Jindra Pet��k
2011-07-30 16:56:19 +02:00
parent fd853e51bf
commit f5a1451b9f
6 changed files with 66 additions and 43 deletions
@@ -23,20 +23,7 @@ public class Https extends Http {
public Https(String host, int port, boolean isProxy) throws IOException
{
super(host, port,isProxy);
if(isProxy){
Request connectReq=new Request(null);
connectReq.setCommand("CONNECT");
connectReq.setURL(host+":"+port);
connectReq.setProtocol("HTTP/1.1");
try {
sendRequest(connectReq);
recvReply(connectReq);
} catch (RetryRequestException ex) {
}
}
promoteToClientSSL();
super(host, port,isProxy);
}
private static String cacheKey(String host, int port)