Forum Discussion
Richard_Marsha1
Nimbostratus
Sep 06, 2006http content rewrite
Hi,
I'm looking for some help writing my first iRule.
We are quering a remote domain for an xml feed, but often the returned content begins with garbage - please see example below:...
Sep 19, 2006
I would set replace to 0 as a default in the HTTP_REQUEST event or you will get a undefined variable error when trying to access it in the other events.
when HTTP_REQUEST {
set replace 0
if { [matchclass [HTTP::host] equals $::BadServers] }{
set replace 1
}
}Otherwise, it looks good to me...
-Joe
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
