How add data in payload requests

Hi,

I have to 'live" update a post field in a payload request before forwarding the request to ASM.

I found how to get the payload data with a collect when HTTP_REQUEST and then a payload split when HTTP_REQUEST_DATA to retrive the specific parameter.

- How can I now inject a updated value for it in payload with if needed, update content-lenth ?

Thanks in advance,

Rodolphe. (FR)

Hi Rodolphe,

You can use HTTP::payload to retrieve and replace the entire payload or parts thereof:

http://devcentral.f5.com/wiki/default.aspx/iRules/http\_\_payload

Aaron

Can I do the same thing with TCP::payload. I need to add a SENDER field to an outbound email. I am trying TCP::payload replace… but that does not seem to be working?

Thanks,

Tom