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

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

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>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>request=3D&quot;GET =
&quot;+ServFile+&quot;=20
HTTP/1.0\r\n&quot;+<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&quot;Accept: application/msword, application/vnd.ms-excel,=20
application/vnd.ms-powerpo&quot;+<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&quot;int, image/gif, image/x-xbitmap, text/html, image/jpeg, =
image/pjpeg,=20
*/*\r\n&quot;+<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&quot;Accept-Language:=20
da\r\n&quot;+<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&quot;Accept-Encoding: compress, gzip,=20
deflate\r\n&quot;+<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&quot;content-length:=20
&quot;+fileURLCon.getContentLength()+&quot;\r\n&quot;+<BR>&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;=20
&quot;content-type:=20
&quot;+fileURLCon.getContentType()+&quot;\r\n&quot;+<BR>&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
=20
&quot;User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows=20
NT)\r\n&quot;+<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&quot;Host:=20
&quot;+fileUrl.getHost()+&quot;\r\n&quot;+<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&quot;Connection: Keep-Alive\r\n&quot;;&nbsp;</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</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--


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