cancel
Showing results for 
Search instead for 
Did you mean: 
Nat_Thirasuttakorn
F5 Employee
F5 Employee

Problem this snippet solves:

This is when client send a POST request to LTM and you want to redirect client to another url. Also, you want client to still submit POST request automatically with same POST data to new url.

Code :

when RULE_INIT {
    set static::ext_url "http://10.10.71.3/test.post"
}
when HTTP_REQUEST {
        
    if { [HTTP::method] eq "POST" } {
        HTTP::collect [HTTP::header "Content-Length"]
    }    
}
when HTTP_REQUEST_DATA {
    set content "
Version history
Last update:
‎17-Mar-2015 17:06
Updated by:
Contributors