Forum Discussion

Rodolphe_AUBINE's avatar
Rodolphe_AUBINE
Icon for Nimbostratus rankNimbostratus
May 04, 2010

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)

 

 

2 Replies

  • 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