Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Mime types.

by mdillon (Priest)
on Jun 18, 2000 at 16:02 UTC ( [id://18716]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Mime types.

to figure out the correct MIME type for the file, you could use the File::MMagic module (there's no way i would use the MIME type sent in the client HTTP request, since many browsers these days seem to be horribly misconfigured w.r.t. MIME). i'm not sure how well it works under non-UNIX platforms, but it does have an 'external file' mode which i believe could be used under Windows with the /etc/magic file from a Linux distro, if necessary.

if you can't figure out what the correct MIME type is, it is probably better to use application/octet-stream instead of unknown/unknown.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://18716]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.