Forum Discussion
Mohanad_313515
Apr 04, 2019Nimbostratus
irule to insert action parameter inside Content-Type header for xml request
Hello we have a lot of xml services using soap version 1.2, im facing issue regarding validate soap action header using xml profile. To summarize, while SOAP 1.1 would have these HTTP headers...
youssef1
Apr 04, 2019Cumulonimbus
Hi,
Can you begin with trying this irule please (we will optimize it later):
when HTTP_REQUEST {
set capture 0
if { [HTTP::header exists Content-length] and [HTTP::method] equals "POST" } {
set capture 1
HTTP::collect [HTTP::header Content-Length]
}
}
when HTTP_REQUEST_DATA {
if {$capture} {
set payload [HTTP::payload]
regexp {^.*([^\"]+)<\/a:Action>.*$} $capture -> action
log local0. "action: $action"
}
}
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