Re: Q. telnet domain.com 80 : GET / HTTP1.0

From: Jens-S. Voeckler <voeckler@dont-contact.us>
Date: Thu, 09 Dec 1999 10:09:18 +0100

SeonKyu Park schrieb:

> 1. Non Squid(Proxy) Use
> telnet domain.com 80
> "GET / HTTP1.0\r\n\r\n"
> Result => Html Document

Try "HTTP/1.0" instead... Refer to the various RFC (e.g. 2616 for
HTTP) on how to formulate requests fit for proxies.

> 2. Squid(Proxy) Use
> telnet domain.com 80
> "GET / HTTP1.0\r\n\r\n"
> Result => Squid Error Messages

You have to use the absolute URI. Putting in some more things
like the host tag does not hurt, either:

GET http://a.b.c/ HTTP/1.1\r\n
Host: a.b.c\r\n
Connection: close\r\n\r\n

The above works with both, squid and apache. Usually only 1.1 compliant
web servers will understand about absolute URIs in their requests.

--
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 Thu Dec 09 1999 - 02:21:15 MST

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