Forum Discussion
Stanislas_Piro2
Apr 09, 2019Cumulonimbus
Try this code:
when HTTP_REQUEST {
if { [set capture [expr {([HTTP::header exists Content-length] and [HTTP::method] equals "POST") and ([HTTP::header Content-Type] contains "soap")}]] } {
HTTP::collect [HTTP::header Content-Length]
}
}
when HTTP_REQUEST_DATA {
if {$capture} {
HTTP::header remove "Content-Type"
HTTP::header insert "Content-Type" "application/soap xml; charset=utf-8; action=\"[string trim [findstr [HTTP::payload] "" 31 ""] ]\""
}
}