Headers get screwed up for http://www.altavista.com on -STABLE5

From: Andre Albsmeier <andre.albsmeier@dont-contact.us>
Date: Sun, 13 Feb 2000 19:41:02 +0100

I am using 2.2-STABLE5 on FreeBSD-3.4. It fetches all objects
form a parent cache running NetHawk 0.9.

When pointing Netscape to http://www.altavista.com/, on the very
top there is a line reading:

t-Cookie: AV_USERKEY=AVSdd4bf4d9e60000240010ac000b328; expires=Tuesday, 31-Dec-2013 12:00:00 GMT; path=/; domain=.altavista.com;

To see what's going on, I sent the request to squid directly
with netcat, here is the output:

-------------------------- snip ---------------------------

andre@bali:~>nc proxy 3128
GET http://www.altavista.com/ HTTP/1.0

HTTP/1.0 200 OK
Date: Sun, 13 Feb 2000 17:15:09 GMT
Server: AV/1.0.1
Mime-Version: 1.0
Content-Length: 21103
Content-Type: text/html
Age: 4517
X-Cache: MISS from curry.MYDOMAIN.ORG
Proxy-Connection: close

t-Cookie: AV_USERKEY=AVSdd4bf4d9e60000240010ac000b328; expires=Tuesday, 31-Dec-2013 12:00:00 GMT; path=/; domain=.altavista.com;

<html><head><title>AltaVista - Search</title><base href="http://jump.altavista.com/" target="_top"><meta http-equiv=Refresh content=900><link href="http://www.altavista.com/css/av.css" rel=stylesheet type="text/css"><style type="text/css"><!-- a:{color:#000099} a:vlink{color:#663366} a:hover{color:#007FFF} --></style></head><body bgcolor=White text=Black link="#000099" vlink="#663366" alink="#FF0000">
(rest deleted...)

-------------------------- snip ---------------------------

As we see, the headers get screwed up somehow. When doing the same
with the NetHawk Parent, everything is allright:

-------------------------- snip ---------------------------

root@curry:~>nc proxy.MYDOMAN.ORG 81
GET http://www.altavista.com/ HTTP/1.0

HTTP/1.0 200 OK
Date: Sun, 13 Feb 2000 18:32:41 GMT
Server: AV/1.0.1
MIME-Version: 1.0
Content-Length: 21300
Content-Type: text/html
Set-Cookie: AV_USERKEY=AVSdd4c3bd73900001d0010ac00060dc; expires=Tuesday, 31-Dec-2013 12:00:00 GMT; path=/; domain=.altavista.com;

<html><head><title>AltaVista - Search</title><base href="http://jump.altavista.com/" target="_top"><meta http-equiv=Refresh content=900><link href="http://www.altavista.com/css/av.css" rel=stylesheet type="text/css"><style type="text/css"><!-- a:{color:#000099} a:vlink{color:#663366} a:hover{color:#007FFF} --></style></head><body bgcolor=White text=Black link="#000099" vlink="#663366" alink="#FF0000">

-------------------------- snip ---------------------------

Interestingly, squid gets the headers right when doing a HEAD request
instead of a GET:

andre@bali:~>nc proxy 3128
HEAD http://www.altavista.com/ HTTP/1.0

HTTP/1.0 200 OK
Date: Sun, 13 Feb 2000 18:33:38 GMT
Server: AV/1.0.1
Mime-Version: 1.0
Content-Length: 21328
Content-Type: text/html
Set-Cookie: AV_USERKEY=AVSdd4c3cb21700001d0010ac0007f74; expires=Tuesday, 31-Dec-2013 12:00:00 GMT; path=/; domain=.altavista.com;
Age: 0
X-Cache: MISS from curry.MYDOMAIN.ORG
Proxy-Connection: close

-------------------------- snip ---------------------------

Do people know of a problem like this? I have already looked at Henrik Nordström's
squid pages (great stuff, btw :-)) but didn't find anything that might be related to
this.

Thanks,

        -Andre
Received on Sun Feb 13 2000 - 11:50:45 MST

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