Forum Discussion
- Deb_Allen_18Historic F5 AccountYou could try using the trick we use for HTTP collection mechanics where you force the connection to HTTP/1.0 (RFC2616 prohibits servers from responding to 1.0 requests w/chunked encoding):
when HTTP_REQUEST { Don't allow data to be chunked if { [HTTP::version] eq "1.1" } { if { [HTTP::header is_keepalive] } { HTTP::header replace "Connection" "Keep-Alive" } HTTP::version "1.0" } }
when HTTP_REQUEST { if {[matchclass [IP::client_addr] equals $::NoChunkIPs]}{ Don't allow data to be chunked if { [HTTP::version] eq "1.1" } { if { [HTTP::header is_keepalive] } { HTTP::header replace "Connection" "Keep-Alive" } HTTP::version "1.0" } } }
- JRahmAdminSupport for changing profile parameters in iRules is not there yet.
- Deb_Allen_18Historic F5 Accounthate to do the matchclass for each request is all...
when CLIENT_ACCEPTED { set chunk 1 if {[matchclass [IP::client_addr] equals $::NoChunkIPs]}{ set chunk 0 } } when HTTP_REQUEST { if { $chunk == 0 }{ Don't allow data to be chunked if { [HTTP::version] eq "1.1" } { if { [HTTP::header is_keepalive] } { HTTP::header replace "Connection" "Keep-Alive" } HTTP::version "1.0" } } }
- Jason_AdamsEmployee
^ Expanding the above iRule as it was clobbered during one of our platform migrations
when CLIENT_ACCEPTED priority 500 {
set chunk 1
if {[class match -- [IP::client_addr] equals "/Common/NoChunkIPs"]} {
set chunk 0
}
}
when HTTP_REQUEST priority 500 {
if {$chunk == 0} {
# Don't allow data to be chunked
if {[HTTP::version] eq "1.1"} {
if {[HTTP::header is_keepalive]} {
HTTP::header replace "Connection" "Keep-Alive"
}
HTTP::version "1.0"
}
}
}