Forum Discussion
Robert_LaGrasse
Nimbostratus
Jul 14, 2006Appending 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
Jul 14, 2006Try 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!
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