Forum Discussion
Robert_LaGrasse
Nimbostratus
19 years agoAppending address to uri
Stuck this in the wrong forum before...
Probably a very simple task for you iRule gurus out there, not so simple for my first iRule. Here's what I'm trying to accomplish... when the client r...
JRahm
Admin
19 years agoTry this:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] contains "login.aspx" } {
if { [HTTP::uri] contains "?"} {
HTTP::uri "[HTTP::uri]&IPAddress=[IP::client_addr]"
} else {
HTTP::uri "[HTTP::uri]?IPAddress=[IP::client_addr]"
}
}
}This passes syntax check, but is untested!
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