Re: different response to wget and IE

2002-06-16 Thread Guy CHEMLA

Daniel, Jan, 

Thanks for your help

Guy

___
Do You Yahoo!? -- Une adresse yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com



Re: different response to wget and IE

2002-06-13 Thread coredump


 
 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.




Re: different response to wget and IE

2002-06-13 Thread Daniel Stenberg

On Thu, 13 Jun 2002, Guy CHEMLA wrote:

 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?

It doesn't just suspect that, it knows. Wget issues a HTTP/1.0 request and
then it (the server) can't reply with a chunked response. Since it doesn't
know the size on beforehand, it can only send the response as Connection:
close.

-- 
  Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol