Forum Discussion
jhanrahan_43314
Feb 10, 2009Nimbostratus
Use IRULE to change Response Chunking
Can I use and Irule to change the Response Chunking depending on the source IP address. If so can you please send me an example
Deb_Allen_18
Feb 11, 2009Historic F5 Account
hate to do the matchclass for each request is all...
this s/b more efficient & does the same thing:
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"
}
}
}
/d
- Jason_AdamsNov 07, 2022Employee
^ 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"
}
}
}
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