[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] Re: Download by mime type
From: |
Michelle Konzack |
Subject: |
[Bug-wget] Re: Download by mime type |
Date: |
Mon, 26 Jan 2009 07:40:51 +0100 |
User-agent: |
Mutt/1.5.9i |
Am 2009-01-25 18:10:55, schrieb Micah Cowan:
> Brian wrote:
> > What is the method of determining, for instance, that a file is a pdf?
> > It's not always the case that a file that is a pdf ends in .pdf. Is it
> > possible to download just header information in order to get the mime
> > type of a file, and then choose whether or not to download the file?
>
> See https://savannah.gnu.org/bugs/index.php?20378
>
> Note that such checks necessitate extra queries to the server, in order
> to determine the content-type before requesting a full download.
But even this could be eroneous...
If you have a CGI which output the file, no one knows....
However, most Webbrowser under Linux do the right thing
by using "file" to determiner what file it is...
Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator
24V Electronic Engineer
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
<http://www.tamay-dogan.net/> <http://www.can4linux.org/>
Michelle Konzack Apt. 917 ICQ #328449886
+49/177/9351947 50, rue de Soultz MSN LinuxMichi
+33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
signature.pgp
Description: Digital signature