Forum Discussion
Frank_Ziebarth_
Nimbostratus
Jun 16, 2006rewrite an URI with a request parameter
Hallo
we have two webservices in the development, so the the uri is change very often.
Our end-user should connect to these server to an easy URI
http://server/portal/
http:/...
Jun 19, 2006
I've see this behavior before as well. Maybe unRuleY could comment on why it is but I've verified that the URI is correctly changed with the HTTP::uri command but the contents of the variable isn't correctly updated to match. Maybe this has something to do with variable caching but I'm not sure. If you want to log the values, store it into a temporary variable.
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/portal/" } {
log local0. "Original HTTP uri = [HTTP::uri]"
set newUri [string map { /portal/ /version02.webservices.portal/ } [HTTP::uri]]
HTTP::uri $newUri
log local0. "New HTTP uri = $newUri"
pool SDS_Pool01
}-Joe
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
