Forum Discussion

Ken_Wong_48678's avatar
Ken_Wong_48678
Historic F5 Account
Sep 15, 2005

http payload

hi,

 

 

I am trying to write an irule to rewrite the html content. I want toange the content type in the http payload. Is it possible to do? Any suggestions?

 

 

I use the following rule can show the payload but which is not the html content. How can I get the html content and change it? TIA!

 

 

Regards,

 

Ken

 

 

 

when CLIENT_ACCEPTED {

 

TCP::collect

 

}

 

 

when CLIENT_DATA {

 

set pl [TCP::payload]

 

log local0. "The payload is $pl"

 

}

 

 

 

 

  • drteeth_127330's avatar
    drteeth_127330
    Historic F5 Account
    There are also HTTP::collect and HTTP::payload functions. You can search the forum for examples.