Re: Name based virtual hosts and accessing via squid

From: David Jericho <davidj@dont-contact.us>
Date: Wed, 19 May 1999 14:43:10 +1000

On Wed, May 19, 1999 at 12:48:49PM +1000, David Jericho wrote:
> Checking the web server logs, I find that squid is making the request
> GET / HTTP/1.0
> no matter what hostname I tell it. This happens even if I telnet into the
> proxy on it's port, and do a HTTP/1.1 request by hand, the same thing happens.
>
> Obviously squid is stripping the HTTP type somewhere somehow. What do I do
> to fix it?

Okay, couldn't wait so with Bruce Campbell, we worked out a solution. (Or more,
he did and I sat in the background being a pain :) He'll be submitting it as
patch shortly. Everything I threw at it worked as it should after the patch.

For those who want to see the changes now, we did it against
2.1.PATCH2/src/http.c

754c754
< memBufPrintf(mb, "%s %s HTTP/1.0\r\n",

---
> 	memBufPrintf(mb, "%s %s HTTP/%3.1f\r\n",
756c756
<	strLen(request->urlpath) ? strBuf(request->urlpath) : "/");
---
>	strLen(request->urlpath) ? strBuf(request->urlpath) : "/", orig_request->http_ver);
-- 
David Jericho
          
Received on Tue May 18 1999 - 22:41:04 MDT

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