[11335] in www-talk@info.cern.ch
http request
daemon@ATHENA.MIT.EDU (GTI)
Thu Jun 24 12:25:25 1999
Date: Thu, 24 Jun 1999 09:01:01 -0400 (EDT)
Old-X-Envelope-From: www-talk-request@www10.w3.org Thu Jun 24 09:00:59 1999
From: "GTI" <GTI@dannet.dk>
To: <www-talk@w3.org>
Old-X-Envelope-To: www-talk
Resent-From: gerald@w3.org
Resent-To: www-talk@w3.org
This is a multi-part message in MIME format.
------=_NextPart_000_000D_01BEBE52.136FC3C0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi=20
I'm making a proxy or go-between server in Java. It seems that my =
request to any=20
web server on the internet is rejected. Do you know why?? My request =
looks like this:
request=3D"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";=20
Thanks=20
George Titan
------=_NextPart_000_000D_01BEBE52.136FC3C0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3612.1706"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>Hi </FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>I'm making a proxy or go-between =
server in Java.=20
It seems that my request to any </FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>web server on the internet is =
rejected. Do you=20
know why?? My request looks like this:</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>request=3D"GET =
"+ServFile+"=20
HTTP/1.0\r\n"+<BR> &n=
bsp; =20
"Accept: application/msword, application/vnd.ms-excel,=20
application/vnd.ms-powerpo"+<BR> =
=20
"int, image/gif, image/x-xbitmap, text/html, image/jpeg, =
image/pjpeg,=20
*/*\r\n"+<BR> &=
nbsp; =20
"Accept-Language:=20
da\r\n"+<BR> &n=
bsp; =20
"Accept-Encoding: compress, gzip,=20
deflate\r\n"+<BR> &nb=
sp; =20
"content-length:=20
"+fileURLCon.getContentLength()+"\r\n"+<BR> &nb=
sp; &nbs=
p;=20
"content-type:=20
"+fileURLCon.getContentType()+"\r\n"+<BR>  =
; =
=20
"User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows=20
NT)\r\n"+<BR> &=
nbsp; =20
"Host:=20
"+fileUrl.getHost()+"\r\n"+<BR> &nb=
sp; =20
"Connection: Keep-Alive\r\n"; </FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>Thanks </FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>George =
Titan</FONT></DIV></BODY></HTML>
------=_NextPart_000_000D_01BEBE52.136FC3C0--