Forum Discussion
jay_41157
Apr 21, 2011Nimbostratus
HTTP::PAYLOAD
HI,
I am trying to replace the page content with x's however I am running into some issues and not sure what to do..
Please help.
here is the error i see in the ltm log file:
Apr 21 16...
hooleylist
Apr 22, 2011Cirrostratus
You could prevent chunking on server responses (which will break the iRule as no content-length header is set) by setting the HTTP version in the request to 1.0:
Poached from http://devcentral.f5.com/wiki/default.aspx/iRules/CreditCardScrubber.html
when HTTP_REQUEST {
Prevent the server from sending a compressed response
remove the compression offerings from the client
HTTP::header remove "Accept-Encoding"
Don't allow response data to be chunked
if { [HTTP::version] eq "1.1" } {
Force downgrade to HTTP 1.0, but still allow keep-alive connections.
Since HTTP 1.1 is keep-alive by default, and 1.0 isn't,
we need make sure the headers reflect the keep-alive status.
Check if this is a keep alive connection
if { [HTTP::header is_keepalive] } {
Replace the connection header value with "Keep-Alive"
HTTP::header replace "Connection" "Keep-Alive"
}
Set server side request version to 1.0
This forces the server to respond without chunking
HTTP::version "1.0"
}
}
Aaron
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