Hi John;

Did you enter a new line after "host: myserver"? Here is what I got:

----------------------------------------------
[EMAIL PROTECTED] root]# telnet www.ngogeeks.com 80
Trying 216.17.101.59...
Connected to www.ngogeeks.com (216.17.101.59).
Escape character is '^]'.
HEAD /download/midcom-example.xml.gz HTTP/1.1
host: www.ngogeeks.com

HTTP/1.1 200 OK
Date: Fri, 19 Dec 2003 01:04:25 GMT
Server: Apache/1.3.26 (Unix) Debian GNU/Linux Midgard/1.5.0/SG PHP/4.1.2
Last-Modified: Thu, 18 Dec 2003 03:36:19 GMT
ETag: "40638-18fa-3fe120b3"
Accept-Ranges: bytes
Content-Length: 6394
Content-Type: text/xml
Content-Encoding: x-gzip
-----------------------------------------------

As you see, the wrong Content-Type of text/xml is sent for a file which is 
actually a gz'ed file. Check your apache config file. Try to set the Content-
Type of .gz files to application/x-gzip(AddContentType directive)

Mohsen


Quoting John <[EMAIL PROTECTED]>:

> Hi Mohsen
> 
> On Thu,18 Dec 2003 19:52:22 +0330
> Mohsen Moeeni <[EMAIL PROTECTED]> wrote:
> > 
> > This should happen as the default action if there is not something
> > wrong. If it's not the case for you then you need to make sure if it's
> > an Apache issue or IE issue. Just check with another client. If the
> > same thing happens with a diffrent browser, then chances are that your
> > Apache is sending incorrect content-type header for your .gz files. To
> > check it do the following:
> > 
> > [root@ root]# telnet www.myserver.com 80
> > 
> > Escape character is '^]'.
> > <you type>
> > HEAD <your-uri> HTTP/1.1
> > host: www.myserver.com
> > 
> > <you get>
> > HTTP/1.1 200 OK
> > Date: Thu, 18 Dec 2003 16:09:41 GMT
> > Content-Length: 31223
> > Connection: close
> > Content-Type: text/html  <----
> > 
> > Connection closed by foreign host.
> > [root@ root]# 
> > ---
> 
> I followed the instructions above and did the following
> 
>       $ telnet www.ngogeeks.com 80
>       Trying 216.17.101.59...
>       Connected to jake.
>       Escape character is '^]'.
>       HEAD http://jake/ngogeeks/downloads/midcom-example.xml.gz HTTP/1.1
>       host: www.ngogeeks.com
> 
> but it just sits there. Eventually I will get a connection closed
> message and when I look at the error logs I get the following:
> 
>       [Fri Dec 19 00:08:39 2003] [error] [client 218.214.55.75] request
>       failed: error reading the headers
> 
> I tried the a GET request with a plain text file:
> 
>       GET http://jake/ngogeeks/README.txt
> 
> and that gets the content of the page but using a HEAD request for the
> same URI does the same as the .xml.gz file.
> 
> I think Apache is serving the right header information as when I click
> on the xml.gz it must be getting downloaded and uncompressed on the fly
> as it is openned in the browser but as most people would like to save
> those sort of files it would make more sense for a save as window to
> open.
> 
> Thanks very much for your help.
> 
> cheers
> John
> 
> -- 
> John Habermann
> 
> http://www.ngogeeks.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to