From: Guy CHEMLA [EMAIL PROTECTED]
Date: 2002/06/13 Thu PM 12:27:00 EDT
To: [EMAIL PROTECTED]
Subject: different response to wget and IE
Hello,
Could someone please explain why does Apache issue a
Connection: close when wget requests a cgi? Pasting
below requests of IE and wget and Apache's responses
to each. Does Apache have a reasons to suspect wget's
ability to deal with chunks?
Sincere thanks,
Guy
IE request
GET /bugs/show_bug.cgi HTTP/1.1\r\n
Accept: image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, application/vnd.ms-powerpoint,
Accept-Language: he,en-us;q=0.5\r\n
Accept-Encoding: gzip, deflate\r\n
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01;
Windows NT 5.0)\r\n
Host: host.dom.com\r\n
Connection: Keep-Alive\r\n
Cookie: ...
Apache response
HTTP/1.1 200 OK\r\n
Date: Thu, 13 Jun 2002 11:35:23 GMT\r\n
Server: Apache/1.3.3 (Unix)\r\n
Keep-Alive: timeout=15, max=100\r\n
Connection: Keep-Alive\r\n
Transfer-Encoding: chunked\r\n
Content-Type: text/html\r\n
--
WGET request
GET /bugs/show_bug.cgi HTTP/1.0\r\n
User-Agent: Wget/1.8.1\r\n
Host: host.dom.com\r\n
Accept: */*\r\n
Connection: Keep-Alive\r\n
Apache response
HTTP/1.1 200 OK\r\n
Date: Thu, 13 Jun 2002 11:33:12 GMT\r\n
Server: Apache/1.3.3 (Unix)\r\n
Connection: close\r\n
Content-Type: text/html\r\n
Try the argument --user-agent=Mozilla/4.0 (compati ... and see if it make a
difference.