Forum Discussion
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::payloa...
Michael_Yates
Oct 27, 2011Nimbostratus
If you edit the payload and do not correct the length then you can get mismatch errors which would tell the client that the data has been tampered with. Some systems like the ASM will flag or even block this.
Colin followed the formula: HTTP::payload replace
http://devcentral.f5.com/wiki/iRules.HTTP__payload.ashx
HTTP::payload replace 0 [string length $newPayload] $newPayload
HTTP::payload
replace - Offset 0
string length $newPayload - Returns a decimal string giving the number of characters in string
$newPayload - Payload
Hope this helps.
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