Forum Discussion
Chadri_103513
Nimbostratus
Jun 14, 2010set command broken by "//"
Hello,
I'm having an issue with one of my iRules and I wanted to see if anybody has run into this issue in the past. Basically, I have an iRule that inspects the URI for a set of commands a...
L4L7_53191
Nimbostratus
Jun 16, 2010Regarding your last question about the replacement of "//", as an example here's how I'd go after manipulating the query to remove the "//" from "http://".
when HTTP_REQUEST {
set orig_query [HTTP::query]
set new_query [string map {"http://" "http:"} $orig_query]
log local0. "New query is $new_query"
} Note: I've overly used variables for the sake of the example. You could very well simplify (and save cycles) to a single line like: set new_query [string map {"http://" "http:"} [HTTP::query]]
HTH,
-Matt
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
