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

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

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>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>HTH,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Christian =
B&oslash;hn</FONT>&nbsp;</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 &lt;<A =
href=3D"mailto:GTI@dannet.dk">GTI@dannet.dk</A>&gt;<BR><B>To:=20
    </B><A href=3D"mailto:www-talk@w3.org">www-talk@w3.org</A> &lt;<A=20
    href=3D"mailto:www-talk@w3.org">www-talk@w3.org</A>&gt;<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>&nbsp;</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>&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=20
Titan</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0031_01BEBE79.F26247C0--


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