Forum Discussion
EddieV_26235
Nov 09, 2011Nimbostratus
rewriting location header data
I'll just jump right into the good stuff. Here's my scenario: wget --no-check-certificate -S "https://69.80.196.153/zap?aid=10000066&sid=6&can=fffffffffffffffe" -O /dev/null 2>&1 | grep " ...
EddieV_26235
Nov 09, 2011Nimbostratus
Looks like an answer was found and for specific instances:
when HTTP_RESPONSE {
if { [string tolower [HTTP::header "Location"]] contains "?http" } {
HTTP::header replace "Location" [string map -nocase {?http: ?https:} [HTTP::header "Location"]]
}
if { [string tolower [HTTP::header "Location"]] contains "=http" } {
HTTP::header replace "Location" [string map -nocase {=http =https} [HTTP::header "Location"]]
}
if { [string tolower [HTTP::header "Location"]] contains "&http" } {
HTTP::header replace "Location" [string map -nocase {&http &https} [HTTP::header "Location"]]
}
}
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