Forum Discussion
Jan 07, 2020
Hi Benoit Durand,
Can you try this?
when HTTP_REQUEST_SEND {
TCP::collect 15
}
when SERVER_DATA {
# log local0. "[TCP::payload 15]"
if { ([TCP::payload 15] contains "200") and not ([TCP::payload 15] contains "200 OK") } {
TCP::payload replace 9 3 "200 OK"
}
TCP::release
}
- Benoit_DurandJan 08, 2020Nimbostratus
Thanks eaa, will try it tomorrow.
Question though: Will this only apply to the initial HTML header or any subsequent TCP payload that contains "200" as part of of the first 15 bytes of a server data response?