Forum Discussion
Tom_Lauwereins_
Nimbostratus
Mar 28, 2011TargetURL issue
I have an issue with "target URL"
When goiing to https://www.foo.com/abc
The webserver is redirecting for authenticating to https://www.foo.com/login.jsp?targetURL=http://www.foo.com/abc
...
Joel_Moses
Nimbostratus
Mar 29, 2011
when HTTP_RESPONSE {
set find "http://www.foo.com/abc"
set replace "https://www.foo.com/abc"
if {[HTTP::is_redirect] and [HTTP::header value Location] contains "?targetURL=http://www.foo.com/abc"} {
HTTP::header replace Location [string map -nocase [-list $find $replace ] [HTTP::header value Location]]
}
}
The variables for find and replace were not set right. The code above should be what you need.
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
