2002/05/16 04:18:49
[org.ibex.core.git] / src / org / xwt / HTTP.java
index bf09ee1..52de898 100644 (file)
@@ -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.println("GET " + path + " HTTP/1.0\r\n");
             pw.print("User-Agent: XWT\r\n");
             pw.print(headers);
             pw.print("\r\n");