Forum Discussion
Dustin_Smith_29
Nimbostratus
Feb 09, 2007How to add a query string value to pass to servers in teh pool?
I would like to add a query string value to the incoming http request to distinguish on the server if it is coming in on an ssl virtual or not.
Example 1
From
https://ww...
Steve_Brown_882
Sep 25, 2009Historic F5 Account
Having issues with a similare irule wondering if anyone has thoughts.
The latest iteration looks almost exaclty like Joe's, but no matter what I do it does not seem to append the my new query string to the URI.
when HTTP_REQUEST {
set content [HTTP::uri]
set query "somequery=something"
if { ($content starts_with "/print/") and ($content ends_with "?") } {
HTTP::uri "[HTTP::uri]$query"
log "This should be the new uri [HTTP::uri]"
} elseif { ($content starts_with "/print/") and ($content contains "?") } {
HTTP::uri "[HTTP::uri]&$query"
log "This should be the new uri [HTTP::uri]"
} elseif { $content starts_with "/print/" } {
HTTP::uri "[HTTP::uri]?$query"
log "This should be the new uri [HTTP::uri]"
}
}
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
