I am developing a url sniffer and i wanted to filter results as i wanted to grab only media files by checking their mime types. I am searching over google for two days now but can’t find any correct solution.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
IIS just looks at the file extension of a file, and looks it up in an internal database (you can Create/Read/Update/Delete entries).
This isn’t 100% accurate (extension doesn’t have to match the content), but going a step further would be overkill.
Here’s more on mime types.