Forum Discussion
nitass
Jun 05, 2014Employee
e.g.
config
[root@ve11a:Active:In Sync] config tmsh list ltm rule qux
ltm rule qux {
when HTTP_REQUEST {
set qvalue [URI::query [HTTP::uri] refundInfo]
if { [HTTP::path] eq "/dir/ectory/cancelOrderForm" and $qvalue ne "" } {
HTTP::redirect "https://[HTTP::host]/dir/ectory/cancelOrderForm.action?token=$qvalue"
}
}
}
test
[root@ve11a:Active:In Sync] config curl -I http://172.28.24.10/dir/ectory/cancelOrderForm?refundInfo=VALUETHATISNEEDED -H "Host: domain.com"
HTTP/1.0 302 Found
Location: https://domain.com/dir/ectory/cancelOrderForm.action?token=VALUETHATISNEEDED
Server: BigIP
Connection: Keep-Alive
Content-Length: 0