X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FHTTP.java;h=002cb32385241a85af77474e698583df9d032e1c;hb=642d912992ac0471aa0655d9b93144e3ffdcd259;hp=bf09ee1476e55f3b0d6b65582848718a1d509004;hpb=2fad98e80da9e55c8ab4bef6d31c18f09e269b4a;p=org.ibex.core.git diff --git a/src/org/xwt/HTTP.java b/src/org/xwt/HTTP.java index bf09ee1..002cb32 100644 --- a/src/org/xwt/HTTP.java +++ b/src/org/xwt/HTTP.java @@ -271,7 +271,6 @@ public class HTTP { out = sock.getOutputStream(); PrintWriter pw = new PrintWriter(new OutputStreamWriter(out)); pw.print("POST " + path + " HTTP/1.0\r\n"); - pw.print("Host: " + host + "\r\n"); pw.print("User-Agent: XWT\r\n"); pw.print("Content-length: " + contentLength + "\r\n"); pw.print(headers); @@ -288,7 +287,7 @@ public class HTTP { } else { PrintWriter pw = new PrintWriter(new OutputStreamWriter(sock.getOutputStream())); pw.print("GET " + path + " HTTP/1.0\r\n"); - pw.print("Host: " + host + "\r\n"); + System.out.print("GET " + path + " HTTP/1.0\r\n"); pw.print("User-Agent: XWT\r\n"); pw.print(headers); pw.print("\r\n"); @@ -421,6 +420,24 @@ public class HTTP { while((s = br.readLine()) != null) script += s + "\n"; if (Log.on) Log.log(HTTP.ProxyInfo.class, "successfully retrieved WPAD PAC:"); if (Log.on) Log.log(HTTP.ProxyInfo.class, script); + + // MS CARP hack + Vector carpHosts = new Vector(); + for(int i=0; i