Re: [SLUG] Downloading files with .asc extention.

2009-03-09 Thread Glen Turner

This is a bug in the Apache configuration. Read
http://httpd.apache.org/docs/2.2/mod/mod_mime.html#multipleext

The server has


 AddEncoding x-gzip .gz
 AddEncoding x-compress .Z
 AddEncoding x-bzip2 .bz2


and maybe AddType entries as well (probably via a trashy
/etc/mime.types).

It should have the more complex but correct:


 
  AddEncoding x-gzip .gz
 
 
  AddEncoding x-compress .Z
 
 
  AddEncoding x-bzip2 .bz2
 


wget -S http://www.example.com/fred.tar.gz
  Content-Type: application/x-tar
  Content-Encoding: x-gzip

Note carefully that some browsers will now un-encode the
file prior to writing it to disk (ie, fred.tar.gz
will now save as the uncompressed fred.tar).

You can also configure Apache so that .gz.asc and
.bz2.asc are a special case prior to .asc.


# PGP

  AddType application/pgp-signature .sig .tar.gz.asc .tar.bz2.asc
  ...


  AddDescription "PGP signature" .sig .tar.gz.asc .tar.bz2.asc
  ...


# Text

  AddType text/plain .txt .asc
  ...


  AddDescription "Text document" .txt .asc
  ...



--
 Glen Turner
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Downloading files with .asc extention.

2009-03-09 Thread Michael Chesterton


On 10/03/2009, at 7:09 AM, Erik de Castro Lopo wrote:


Hi all,

I've got a pair of files on  my website:

   http://www.mega-nerd.com/libsndfile/libsndfile-1.0.19.tar.gz
   http://www.mega-nerd.com/libsndfile/libsndfile-1.0.19.tar.gz.asc

The second doesn't seem to want to download in  Mozilla due to a
"Content Encoding Error". It downloads file with wget and gpg is
happy to verify the tag.gz.

Anyone got any idea whats going on here?



It's got something to do with Content-Encoding: x-gzip

I think apache is telling the browser to accept a gzip file, then is
sending an ascii file.

wget -S http://www.mega-nerd.com/libsndfile/libsndfile-1.0.19.tar.gz.asc

--

http://chesterton.id.au/blog/
http://barrang.com.au/


--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Downloading files with .asc extention.

2009-03-09 Thread Erik de Castro Lopo
Sridhar Dhanapalan wrote:

> mimeTypes.rdf
> 
> You can find a copy in each of your profile directories.

Ok, so I can fix my mozilla, but I can't really ask everyone 
else to fix theirs.

Is there a prefered extension for ascii armoured detached
signature files that mozilla et al will download?

Erik
-- 
-
Erik de Castro Lopo
-
"There are no jokes in Islam. There is no humor in Islam. There is no
fun in Islam. There can be no fun and joy in whatever is serious."
-- Ayatollah Khomeini
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Downloading files with .asc extention.

2009-03-09 Thread Sridhar Dhanapalan
mimeTypes.rdf

You can find a copy in each of your profile directories.

2009/3/10 Ken Foskey :
>
> I recall vaguely that there is a file that lists extensions and the
> filetypes associated with them.   You could look for that and modify it.
>
> Ken
>
>
> On Tue, 2009-03-10 at 07:09 +1100, Erik de Castro Lopo wrote:
>
>> Hi all,
>>
>> I've got a pair of files on  my website:
>>
>>     http://www.mega-nerd.com/libsndfile/libsndfile-1.0.19.tar.gz
>>     http://www.mega-nerd.com/libsndfile/libsndfile-1.0.19.tar.gz.asc
>>
>> The second doesn't seem to want to download in  Mozilla due to a
>> "Content Encoding Error". It downloads file with wget and gpg is
>> happy to verify the tag.gz.
>>
>> Anyone got any idea whats going on here?
>>
>> Erik
>> --
>> -
>> Erik de Castro Lopo
>> -
>> Turks embrace novelist's war on EU
>> http://www.iht.com/articles/2005/10/12/news/novel.php
> --
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
>




-- 
Bring choice back to your computer.
http://www.linux.org.au/linux
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Downloading files with .asc extention.

2009-03-09 Thread Ken Foskey

I recall vaguely that there is a file that lists extensions and the
filetypes associated with them.   You could look for that and modify it.

Ken


On Tue, 2009-03-10 at 07:09 +1100, Erik de Castro Lopo wrote:

> Hi all,
> 
> I've got a pair of files on  my website:
> 
> http://www.mega-nerd.com/libsndfile/libsndfile-1.0.19.tar.gz
> http://www.mega-nerd.com/libsndfile/libsndfile-1.0.19.tar.gz.asc
> 
> The second doesn't seem to want to download in  Mozilla due to a
> "Content Encoding Error". It downloads file with wget and gpg is
> happy to verify the tag.gz.
> 
> Anyone got any idea whats going on here?
> 
> Erik
> -- 
> -
> Erik de Castro Lopo
> -
> Turks embrace novelist's war on EU
> http://www.iht.com/articles/2005/10/12/news/novel.php
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Downloading files with .asc extention.

2009-03-09 Thread Erik de Castro Lopo
Hi all,

I've got a pair of files on  my website:

http://www.mega-nerd.com/libsndfile/libsndfile-1.0.19.tar.gz
http://www.mega-nerd.com/libsndfile/libsndfile-1.0.19.tar.gz.asc

The second doesn't seem to want to download in  Mozilla due to a
"Content Encoding Error". It downloads file with wget and gpg is
happy to verify the tag.gz.

Anyone got any idea whats going on here?

Erik
-- 
-
Erik de Castro Lopo
-
Turks embrace novelist's war on EU
http://www.iht.com/articles/2005/10/12/news/novel.php
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html