Forum Discussion
Jad_Tabbara__J1
Sep 05, 2017Cirrostratus
Hello Crate,
Could you try the following irule
when HTTP_REQUEST {
if { [HTTP::header "Content-Type"] contains "boundary=" } {
log local0. "Content-Type value BEFORE : [HTTP::header "Content-Type"]"
set content_type [HTTP::header "Content-Type"]
if { [scan $content_type {%[^=]=%s} first second] == 2 } {
set new_content_type "$first=--$second"
HTTP::header replace "Content-Type" $new_content_type
log local0. "Content-Type value AFTER: [HTTP::header "Content-Type"]"
}
}
}
Hope it helps
Please give me a feedback
Regards