W3C home > Mailing lists > Public > www-talk@w3.org > May to June 1999

SV: http request

From: Christian Bhn <chrb@online.no>
Date: Thu, 24 Jun 1999 19:44:17 +0200
To: "GTI" <GTI@dannet.dk>
Cc: "WWW-TALK" <www-talk@w3.org>
Message-ID: <01bebe69$2ed977c0$LocalHost@bohns>
You must have 2 \r\n at the end

Christian Bhn
-----Original Message-----
    From: GTI <GTI@dannet.dk>
    To: www-talk@w3.org <www-talk@w3.org>
    Date: Thursday, June 24, 1999 6:36 PM
    Subject: http request 
    I'm making a proxy or go-between server in Java. It seems that my request to any 
    web server on the internet is rejected. Do you know why?? My request looks like this:
    request="GET "+ServFile+" HTTP/1.0\r\n"+
                    "Accept: application/msword, application/vnd.ms-excel, application/vnd.ms-powerpo"+
                    "int, image/gif, image/x-xbitmap, text/html, image/jpeg, image/pjpeg, */*\r\n"+
                    "Accept-Language: da\r\n"+
                    "Accept-Encoding: compress, gzip, deflate\r\n"+
                    "content-length: "+fileURLCon.getContentLength()+"\r\n"+
                    "content-type: "+fileURLCon.getContentType()+"\r\n"+
                    "User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)\r\n"+
                    "Host: "+fileUrl.getHost()+"\r\n"+
                    "Connection: Keep-Alive\r\n"; 
    George Titan
Received on Thursday, 24 June 1999 14:15:42 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:01 UTC