Re: Match JPG

From: Sasa Milic (smilic2@pexim.co.yu)
Date: Wed May 02 2007 - 17:48:34 ART


No, it doesn't. You need to use "image/jpeg". Sniff replies from web server,
and you'll see line:

Content-type: image/jpeg

Mime type that you use for filtering has to match this.

Regards,
  Sasa, #8635

----- Original Message -----
From: "maureen schaar" <maureen.schaar@gmail.com>
To: "Gavin Lawson" <GavinL@titan.net.au>
Cc: <ccielab@groupstudy.com>
Sent: Wednesday, May 02, 2007 4:05 PM
Subject: Re: Match JPG

> Does IOS interpret the mime-type jpg identical to jpeg? I am asking
> since jpg is not listed in the IANA list for images media-types (only
> jpeg. This cisco doc:
>
> http://www.cisco.com/en/US/products/ps6350/products_configuration_guide_chapter09186a0080455985.html
>
> Refers to the iana list for valid mime types:
> /Quote
> For MIME type matching, the MIME type can contain any user-specified
> text string. A list of the Internet Assigned Numbers Authority
> (IANA)-supported MIME types can be found at:
>
> ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/media-types
>
> /Unquote
>
> Now this last url specified in the cisco doc does not work, it seems
> to be: http://www.iana.org/assignments/media-types/
>
> So I am wondering if you can even match on mime type jpg. I did not
> test this, so maybe it does work.
>
> Maureen
>
> On 5/2/07, Gavin Lawson <GavinL@titan.net.au> wrote:
>> Hi Hossam
>>
>> If you want to match a URL with ".jpg" in it then
>> match protocol http url "*.jpg"
>> is the correct match command
>>
>> If you want to match a file with a jpeg image in it NOT MATTER WHAT THE
>> NAME IN THE URL then
>> match protocol http mime "*jpg*"
>> is the correct match command
>>
>> GL
>>
>> -----Original Message-----
>> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
>> Eric Poulin
>> Sent: Tuesday, 1 May 2007 10:44 PM
>> To: Hossam Abbas; ccielab@groupstudy.com
>> Subject: Re: Match JPG
>>
>> The first option works fine:
>>
>> match protocol http url "*.jpg"
>>
>> Here is some good examples:
>>
>> http://www.cisco.com/univercd/cc/td/doc/product/software/ios124/124cg/hq
>> os_c/part05/ch05/hdtnbara.htm
>>
>> Eric
>>
>> --- Hossam Abbas <habbas97@yahoo.com> wrote:
>>
>> > Hi,
>> > could any1 tell me which will be correct if i want to match JPG in
>> http traffic to use:
>> >
>> > match protocol http url"*.jpg"
>> >
>> > or
>> >
>> > match protocol http mime "*jpg"
>> >
>> >
>> > thanks
>> >
>> > __________________________________________________
>> > Do You Yahoo!?
>> > Tired of spam? Yahoo! Mail has the best spam protection around
>> > http://mail.yahoo.com
>> >
>> > ______________________________________________________________________
>> > _ Subscription information may be found at:
>> > http://www.groupstudy.com/list/CCIELab.html
>> >
>>
>>
>> __________________________________________________
>> Do You Yahoo!?
>> Tired of spam? Yahoo! Mail has the best spam protection around
>> http://mail.yahoo.com
>>
>> _______________________________________________________________________
>> Subscription information may be found at:
>> http://www.groupstudy.com/list/CCIELab.html
>>
>> _______________________________________________________________________
>> Subscription information may be found at:
>> http://www.groupstudy.com/list/CCIELab.html
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html



This archive was generated by hypermail 2.1.4 : Fri Jun 01 2007 - 06:55:19 ART