Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: Re: Getting File Type using Regular Expressions

by halley (Prior)
on Apr 21, 2004 at 17:46 UTC ( #347073=note: print w/replies, xml ) Need Help??

in reply to Re: Getting File Type using Regular Expressions
in thread Getting File Type using Regular Expressions

The HTTP protocol offers a MIME type. Where does the server get it? In most configurations, it guesses it. Download a RedHat Package Manager (.rpm) file, and you get application/x-realplayer-media (.rpm) mime type. Oops. Why? Because it used an imperfect heuristic scheme to specify the mime type.

Neither the Windows filesystem nor the Unix filesystem offers typing metadata. Resource forks and Windows .rc/.res resource files offer typing metadata inside their encoded contents.

It's just another example when you and I are in "violent agreement" over some topic. Metadata and type-determination methods are weak, and usually poorly implemented. In my case, I just suggested that two heuristics are better than one, instead of ranting that it's all futile unless you have God's Gift to Omniscient Filesystems.

[ e d @ h a l l e y . c c ]

  • Comment on Re: Re: Getting File Type using Regular Expressions

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://347073]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2020-09-19 09:58 GMT
Find Nodes?
    Voting Booth?
    If at first I donít succeed, I Ö

    Results (114 votes). Check out past polls.