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...
Thomas_Schaefer
Oct 27, 2011Nimbostratus
One more thought...This is actually clearer in the example of scrubbing a credit card number somewhere in the middle of the string where the first number is not 0. If you find a credit card at position 1300, then it seems pretty clear that you replace starting at position 1300 for 16 (length of the credit card--except AMEX). Perhaps the confusion comes in the fact that in this case the length you want to replace is 16 which also happens to be the length of the new string as well. If I have the statement
HTTP::payload replace 1300 16 $scrubbedCard
it is not obvious which is which, but in fact, it is the size of the content you are replacing.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