Suresh,

Yes there is a standard way

The official Assignments for MIME types is here
http://www.iana.org/assignments/media-types/

A good url for giving you the definitions is here on the sfsu website
http://www.sfsu.edu/training/mimetype.htm

I also pulled the following from an old email from some testing a guy named
Thomwin did with class maps and mime/url matching techniques.


match protocol http mime "*jpg" ---> didn't match anything (even the jpg
file)
match protocol http mime "*jpeg" or match protocol http mime "image/jpeg"
---> match jpeg,jpg,jpe,jfif,pjpeg,pjp
match protocol http mime "*mpg" ---> didn't match anything (even the mpg
file)
match protocol http mime "*mpeg" or match protocol http mime "video/mpeg"
----> match mpeg,mpg,mpe,mpv,vbs,mpegv

match protocol http host "cisco*" ----> didn't match www.cisco.com
match protocol http host "*cisco*" -----> match www.cisco.com

match protocol http url "WWChannels*" match www.cisco.com/WWChannels/ 
match protocol http url "*WWChannels*" match www.cisco.com/WWChannels/
match protocol http url "LOCATR*" didn't match
www.cisco.com/WWChannels/LOCATR/
match protocol http url "*LOCATR* match www.cisco.com/WWChannels/LOCATR/

Regards,
 
Tyson Scott - CCIE #13513 R&S and Security
Technical Instructor - IPexpert, Inc.

Telephone: +1.810.326.1444 
Cell: +1.248.504.7309
Fax: +1.810.454.0130
Mailto:  [EMAIL PROTECTED]
 
Join our free online support and peer group communities:
http://www.IPexpert.com/communities
 
IPexpert - The Global Leader in Self-Study, Classroom-Based, Video On Demand
and Audio Certification Training Tools for the Cisco CCIE R&S Lab, CCIE
Security Lab, CCIE Service Provider Lab , CCIE Voice Lab and CCIE Storage
Lab Certifications.

 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Suresh Mishra
Sent: Thursday, July 17, 2008 1:43 PM
To: osl
Subject: [OSL | CCIE_RS] MIME type

Hello all,

I would like to know if there is any document that explains how to
match mime types for various http traffic types. Do we have any
standard way of matching mime types?


Suresh

Reply via email to