dubdub
Oct 26, 2011Nimbostratus
HTTP::payload replace length
Hi all,
I used Colin's excellent example of replacing outbound payload content at http://devcentral.f5.com/Tutorials/...Rules.aspx - but was curious, that last line where it says:
HTTP::payload replace 0 [string length $newPayload] $newPayload
Should it be:
HTTP::payload replace 0 $originalPayloadLength $newPayload
where $originalPayloadLength is calculated right before the "set newPayload" line in HTTP_RESPONSE_DATA? Won't the content length in the header be off otherwise?
Thanks,
Jen