Forum Discussion
Albert__Tase_70
Nimbostratus
May 18, 2007need help on making an irule to check header
hope someone can help I need an irule to check the header for "NPG_SRC_ADDR" if its not in the header then insert it in the header and to include the client ip address I gone through the docs have b...
Colin_Walker_12
Sep 28, 2007Historic F5 Account
To check a header for specific info you would use the HTTP::header command.
The logic would look something like:
when HTTP_REQUEST {
if { [HTTP::header exists "NPG_SRC_ADDR"] } {
pool httpPool
} else {
HTTP::header insert "NPG_SRC_ADDR" [IP::client_addr]
}
}
HTH,
Colin
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