[11336] in www-talk@info.cern.ch

home help back first fref pref prev next nref lref last post

Re: http request

daemon@ATHENA.MIT.EDU (Jim Whitescarver)
Thu Jun 24 12:44:36 1999

Date: Thu, 24 Jun 1999 12:35:55 -0400
From: Jim Whitescarver <jim@njit.edu>
To: GTI <GTI@dannet.dk>
Cc: www-talk@w3.org
Resent-From: www-talk@w3.org

Looks okay, just needs another "\r\n" at the end to end the mime
headers.

GTI wrote:

>  Hi I'm making a proxy or go-between server in Java. It seems that my
> request to anyweb 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"; ThanksGeorge Titan


home help back first fref pref prev next nref lref last post