Very basic protocol question

From: Juan Carlos Castro y Castro <jcastro@dont-contact.us>
Date: Wed, 14 Jul 1999 20:06:52 -0300

Hi. I want to implement a "thin" HTTP client which telnets to port 3128
of our proxy and makes a generic HTTP request, say, fetching the
contents of "http://www.linux.org/". To test, I telnetted via Windows
and wrote GET http://www.linux.org/<Enter>. A few seconds after that I
got an error page saying, "Connection Lifetime Expired".

If I type two Enters, I immediately get this. Saying "GET HTTP/1.0
http://www.linux.org/" doesn't help either.

Thanx 4 any help.

---------------------------------------------------------
HTTP/1.0 400 Bad Request
Server: Squid/2.1.PATCH2
Mime-Version: 1.0
Date: Wed, 14 Jul 1999 23:01:34 GMT
Content-Type: text/html
Content-Length: 831
Expires: Wed, 14 Jul 1999 23:01:34 GMT
X-Squid-Error: ERR_INVALID_REQ 0
X-Cache: MISS from appi1.appi.com.br
Proxy-Connection: close

<HTML><HEAD>
<TITLE>ERROR: The requested URL could not be retrieved</TITLE>
</HEAD><BODY>
<H1>ERROR</H1>
<H2>The requested URL could not be retrieved</H2>
<HR>
<P>
While trying to process the request:
<PRE>
GET http://www.linux.org/
</PRE>
<P>
The following error was encountered:
<UL>
<LI>
<STRONG>
Invalid Request
</STRONG>
</UL>

<P>
Some aspect of the HTTP Request is invalid. Possible problems:
<UL>
<LI>Missing or unknown request method
<LI>Missing URL
<LI>Missing HTTP Identifier (HTTP/1.0)
<LI>Request is too large
<LI>Content-Length missing for POST or PUT requests
<LI>Illegal character in hostname; underscores are not allowed
</UL>
</P>

<br clear="all">
<hr noshade size=1>
Generated Wed, 14 Jul 1999 23:01:34 GMT by appi1.appi.com.br (<a
href="http://squid.nlanr.net/Squid/">Squid/2.1.PATCH2</a>)
</BODY></HTML>
---------------------------------------------------------

Received on Wed Jul 14 1999 - 16:54:44 MDT

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