Forum Discussion
JCMATTOS_41723
Nimbostratus
Dec 02, 2008Proxypass with page content modification?
We are currently using the proxypass irule and are trying to add page content modifications and keep getting this error. We followed the instructions and uncommented the two STREAM lines below and add...
hoolio
Cirrostratus
Dec 03, 2008I did this once before but can't find the exact rule. If I remember correctly, using HTTP::header replace Accept "" doesn't actually replace the value of the header. I ended up using something like this:
when HTTP_REQUEST {
HTTP::header replace Accept-Encoding [list ""]
}
when HTTP_REQUEST priority 501 {
log local0. "\[HTTP::header value Accept-Encoding\]: [HTTP::header value Accept-Encoding]"
}
If that doesn't null the value of the Accept-Encoding header, can you try this:
when HTTP_REQUEST {
HTTP::header replace Accept-Encoding [list {}]
}
when HTTP_REQUEST priority 501 {
log local0. "\[HTTP::header value Accept-Encoding\]: [HTTP::header value Accept-Encoding]"
}
Once you're done testing, you can remove the HTTP_REQUEST 501 event as it's just there for debugging. You could use this as a separate rule or add it into your full proxypass rule.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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