> Andre Timmermans wrote:
> > Regarding the source archive I can actually open it if I change its
> > extension from .tar.gz fro .tar.
> 
> Odd. It's definitely a gzipped tar and not an uncompressed one

I suspect Andre's method of download decompressed it when creating the
local file but didn't change the filename.  I think it was mislead by
incorrect headers from the marutan.net server.

    $ curl -sSI 
'http://www.marutan.net/rpcemu/cgi/download.php?sFName=0.8.10/rpcemu-0.8.10.tar.gz'
    HTTP/1.1 302 Found
    Date: Thu, 28 Mar 2013 18:45:51 GMT
    Server: Apache
    Location: http://www.marutan.net/rpcemu/0.8.10/rpcemu-0.8.10.tar.gz
    Content-Type: text/html; charset=utf-8

    $ curl -sSI http://www.marutan.net/rpcemu/0.8.10/rpcemu-0.8.10.tar.gz
    HTTP/1.1 200 OK
    Date: Thu, 28 Mar 2013 18:46:04 GMT
    Server: Apache
    Last-Modified: Wed, 27 Mar 2013 17:05:29 GMT
    ETag: "135008a-58f1f-4d8eb0b84a840"
    Accept-Ranges: bytes
    Content-Length: 364319
    Content-Type: application/x-gzip
    Content-Encoding: x-gzip

    $

The `Content-Encoding: x-gzip' means that the data transferred has been
gzip'd and must be gunzip'd to obtain the `Content-Type:
application/x-gzip';  IOW, it's been double-gzip'd.  Unfortunately, it
hasn't, nor would it make sense to do so, so the gunzip leaves a
non-gzip'd tar file called rpcemu-0.8.10.tar.gz.

Modern browsers, e.g. Firefox, have workarounds for broken servers.
http://mail-archives.apache.org/mod_mbox/httpd-dev/200207.mbox/%[email protected]%3E
is a little more background.

> and on my Linux box it decompresses fine whether it has a .tar or
> .tar.gz extension or no extension at all.

That's just a modern GNU tar looking at the file's contents rather than
relying on the filename.

Cheers, Ralph.

_______________________________________________
Rpcemu mailing list
[email protected]
http://www.riscos.info/cgi-bin/mailman/listinfo/rpcemu

Reply via email to