Forum Discussion
Mikoto_Misaka_1
Nimbostratus
Feb 28, 2006the capital letter and the small letter
Hello,
I think that the operator "contains" distingushes the capital letter and the small letter.
Could you please tell me how to simply write iRule without distingushing the capital le...
zafer
Nimbostratus
Apr 29, 2008here is my irule, can i see different resul when clients come from firefox or ie?
disable or enable compress while checking extension and uri and ip addresses with dataclass option
when HTTP_REQUEST {
set nocompress 0
log local0. "comp enabled default "
if {[matchclass [string tolower [HTTP::uri]] ends_with $::ok_extension] or [matchclass [string tolower [HTTP::uri]] contains $::compress_dir ] and not [matchclass [IP::remote_addr] equals $::no_compress_ip ] } {
set nocompress 0
log local0. "setted 0 for ok_extension or compress_dir or ip [IP::remote_addr]"
}
elseif {[matchclass [string tolower [HTTP::uri]] ends_with $::no_extension] or [matchclass [string tolower [HTTP::uri]] contains $::no_compress_dir ] or [matchclass [IP::remote_addr] equals $::no_compress_ip ] } {
set nocompress 1
log local0. "setted 1 for no_extension or no_compress_dir or your ip [IP::remote_addr]"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects