Forum Discussion
C_D_18583
Nimbostratus
Nov 20, 2006Replacing in the URI ; http -> https and port 80 -> 443
What is the easiest way to rewrite the following string? Replacing in the URI http -> https and port 80 -> 443
Before:
https://testlab-d.tdx.dorion.com/amserver/UI/Login?go...
Steve_Manuel_11
Nimbostratus
Nov 22, 2006Hi Joe;
Tried the following command and it does not appear to work. HTTP_REQUEST is
https://secureinternal-d.tmi.telus.com/amserver/UI/Login?goto=https%3A%2F%2Fsecureinternal-d.tmi.telus.com%3A443%2Feperformance%2FLogin.do%3FLANGUAGE%3DEN
when HTTP_REQUEST {
if { [HTTP::uri] contains "goto"} {
HTTP::query [string map {goto=http% goto=https% %3A80% %3A443%} [HTTP::query]]
log local0. "http string map is [HTTP::query]"
}
}
ltm log output
Nov 22 08:30:35 tmm tmm[702]: Rule D3_INT1_SECURE_REDIRECT_NEW : http string map is goto=http%3A%2F%2Fsecureinternal-d.tmi.telus.com%3A80%2Feperformance%2FLogin.do%3FLANGUAGE%3DEN
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