[11340] in www-talk@info.cern.ch
SV: http request
daemon@ATHENA.MIT.EDU (=?iso-8859-1?Q?Christian_B=F8hn?=)
Thu Jun 24 14:16:07 1999
Reply-To: "=?iso-8859-1?Q?Christian_B=F8hn?=" <chrb@online.no>
From: "=?iso-8859-1?Q?Christian_B=F8hn?=" <chrb@online.no>
To: "GTI" <GTI@dannet.dk>
Cc: "WWW-TALK" <www-talk@w3.org>
Date: Thu, 24 Jun 1999 19:44:17 +0200
Resent-From: www-talk@w3.org
This is a multi-part message in MIME format.
------=_NextPart_000_0031_01BEBE79.F26247C0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
You must have 2 \r\n at the end
HTH,
Christian B=F8hn
-----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=20
=20
=20
Hi=20
=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:
=20
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
=20
Thanks=20
George Titan
------=_NextPart_000_0031_01BEBE79.F26247C0
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><!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 =
HTML//EN">
<META content=3D'"MSHTML 4.71.2016.0"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 face=3DArial size=3D2>You must have 2 \r\n at =
the=20
end</FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>HTH,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Christian =
Bøhn</FONT> </DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
5px">
<DIV><FONT face=3DArial size=3D2><B>-----Original =
Message-----</B><BR><B>From:=20
</B>GTI <<A =
href=3D"mailto:GTI@dannet.dk">GTI@dannet.dk</A>><BR><B>To:=20
</B><A href=3D"mailto:www-talk@w3.org">www-talk@w3.org</A> <<A=20
href=3D"mailto:www-talk@w3.org">www-talk@w3.org</A>><BR><B>Date:=20
</B>Thursday, June 24, 1999 6:36 PM<BR><B>Subject: </B>http request=20
<BR><BR></DIV></FONT>
<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=20
Java. It seems that my request to any </FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>web server on the internet is =
rejected. Do=20
you 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=20
Titan</FONT></DIV></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_0031_01BEBE79.F26247C0--