Re: Difference between HTTP request and Proxy requests

From: Jens-S. Voeckler <[email protected]>
Date: Fri, 20 Nov 1998 13:31:57 +0100

On Fri, 20 Nov 1998, Vianet System Administration wrote:

]I can telnet to a web server port 80 and issue a command like
]GET http://www.somedomain.com/
]..and have it return the page

What you are doing is issuing an archaic HTTP/0.9 proxy request.

]What is the syntax to do this with a proxy?

Use the absolute URL. Also, a few headers might be of use:

telnet to.your.proxy proxyport
...
GET http://www.some.host/some/content.html HTTP/1.0<CRLF>
Host: www.some.host<CRLF>
<CRLF>

Please note that CRLF is \r\n AKA carriage return line feed. The empty
line denotes the end of request. A "Connection: close" might be helpful,
too. The rest about HTTP/1.0 you can read in RFC 1945.

If you are using "HTTP/1.1" as version, you have to read RFC 2068, and you
have to prepared to parse "Transfer-encoding: chunked", which is not
too trivial to parse.

For some site you need to throw in a

        User-Agent: Nutscrape/1.0 (CP/M; 8-bit)

header, or an

        Accept: */*

header.

Le deagh dh�rachd,
Dipl.-Ing. Jens-S. V�ckler (voeckler@rvs.uni-hannover.de)
Institute for Computer Networks and Distributed Systems
University of Hanover, Germany; +49 511 762 4726
Received on Fri Nov 20 1998 - 05:50:07 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:43:11 MST