Forum Discussion
Lee_Orrick_5554
Feb 09, 2006Historic F5 Account
Using HTTP::payload replace to insert payload content
I have seen lots of threads about using HTTP::payload replace to substitute content in a server response. It can also be used to add content to the payload.
One requirement is that you add "response rechunk" to the http profile.
This example adds text to the payload sent to the client. It could easily be a variable.
profile http profile-http-test {
defaults from http
response rechunk
insert xforwarded for enable
}
when HTTP_RESPONSE {
Insert HTML comment to the top of the payload.
http::payload replace 0 0 ""
}
- Lee_Orrick_5554Historic F5 AccountDone. I did not get the categories set in my initial attempt, so I am not sure where my original attempt ended up. It is there now.
- Colin_Walker_12Historic F5 AccountExcellent, thanks much!
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