From: Raj Bansal (ccie_study06@yahoo.com)
Date: Thu Jan 18 2007 - 23:39:57 ART
if its match protocol url, do you match after the hostname and the first "/" after the hostname or the entire url starting from http:// onwards?
so if its match protocol url "root.exe", and you are matching against
www.cisco.com/root.exe,
will it match if its
match protocol url "root.exe".
According to you, it won't match.
now what if i add
match protocol host "www.cisco.com"
match protocol url "root.exe".
will this match?
Thanks.
Raj
"Salau,Olayemi" <Olayemi.Salau@southampton.gov.uk> wrote: Hello Deji
match protocol http url "*root.exe*"
means anything can be before root.exe and anything can be after it.
Literally, anything that has got root.exe in it.
Eg. www.apple.com/ipod/root.exe?$t=vgc&$g=mobitel
So it's like the first star character represents anything
"www.apple.com/ipod/" in this case and the other star character
represents anything "?$t=vgc&$g=mobitel" in this case.
Also * character could mean zero occurence
match protocol http url "root.exe"
matches exactly root.exe in the url, so something like
www.cisco.com/root.exe will be invalid because it's got xters before the
root.exe
match protocol http url "webapp/*"
Similarly, this would me, anything that starts with webapp/ with
anything behind. Since * represents zero or any occurrence of
characters, webapp/ would be fine or
webapp/default/gateway.html?$r=bluemoon is also valid.
match protocol htpp url "*webapp*"
This would mean anything infront of webapp (includes zero occurrence
also) and anything behind webapp (includes zero occurrence also). So
http://www.cisco.com/webapp/mean/ccie.html ; also something like webapp/
would be just fine has well
Note that *webapp* will match something like webapp/ since "/" is like
anything behind webapp, but webapp/* will not match webapp2. Hope you
understand
Option
Description
*
Match any zero or more characters in this position.
?
Match any one character in this position.
|
Match one of a choice of characters.
(|)
Match one of a choice of characters in a range. For example cisco.(gif |
jpg) matches either cisco.gif or cisco.jpg.
[ ]
Match any character in the range specified, or one of the special
characters. For example, [0-9] is all of the digits. [*] is the "*"
character and [[] is the "[" character.
Hope this helps, for more information Check the reference below:-
http://www.cisco.com/univercd/cc/td/doc/product/software/ios124/124cr/hq
os_r/qos_m1h.htm#wp1128712
Many Thanks
This archive was generated by hypermail 2.1.4 : Thu Feb 08 2007 - 23:46:57 ART