Forum Discussion
Rewriting multiple values of HTTP Location header
Hello
I'm trying to rewrite a HTTP location header in a response using a list of possible value to be rewrited
The response to be rewrited :
http://myorighost:81/SASPortal/jsp/html/portal/portal.js
http://myrewritedhost/analytics/Portal/jsp/html/portal/portal.js
So, in the header location, both the host and the path /analytics/portal should be rewrited.
How can I test multiple value to be changed?
I tried this without success:
HTTP::header replace Location [string map -nocase [ list "myorighost:81" "myrewirtedhost" "/analytics/Portal" "/SASPortal/" "/valuex/" "/valuexrewrited"] [HTTP::header value Location]]
Thanks in advance.
Regards
Frédéric
Recent Discussions
Related Content
* 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