joan_luque_1763
Jan 07, 2015Nimbostratus
How add URL parameter
Hi guys,
I have to add a parameter at the end of the URI for all the HTTP requests.
My problem is that the request URI could contain some parameter. How I can add a new one whether there is already parameters in the URI?
I wrote the following iRule and it works, but is not so elegant...
when HTTP_REQUEST {
if { [HTTP::uri] contains "?" } {
HTTP::uri [HTTP::uri]¶meter=abc
} else {
HTTP::uri [HTTP::uri]?parameter=abc
}
}
Any other ideas?
Thanks!