Trying to configure compression iRule command, receiving PCL error.
(Due to customers displaying PDF)
Also, here are the relevant Microsoft KB for the Internet Explorer problems handling compression:
For IE 5.5 : http://support.microsoft.com/default.aspx?scid=kb;en-us;Q313712
For IE 6.0 : http://support.microsoft.com/default.aspx?scid=kb;en-us;Q312496
And the KB article that lead to need to write the Remove_No_Cache_Headers iRule
http://support.microsoft.com/default.aspx?scid=kb;en-us;323308
Rule used:
Here’s on iRule I tried, with selective compression enabled in the HTTP profile:
when HTTP_REQUEST {
set hdr_user_agent [string tolower [HTTP::header User-Agent]]
if { $hdr_user_agent contains “firefox” or $hdr_user_agent contains “msie 6.0” } {
set client_ok 1
log local0. “Header agent $hdr_user_agent compressed”
}
else {
set client_ok 0
}
}
when HTTP_RESPONSE {
set hdr_content_type [string tolower [HTTP::header Content-Type]]
if { $hdr_content_type contains “text” or $hdr_content_type contains “message” } {
if { $client_ok == 1} {
log local0. “Trying to compress response type $hdr_content_type for $hdr_user_agent”
COMPRESS::enable
}
}
}
And a second rule tried, again enabling selective compression in the HTTP profile and also configuring a content type list in the HTTP profile:
when HTTP_REQUEST {
set hdr_user_agent [string tolower [HTTP::header User-Agent]]
if { $hdr_user_agent contains “firefox” or $hdr_user_agent contains “msie 6.0” } {
COMPRESS::enable
log local0. “Header agent $hdr_user_agent compressed”
}
}
Result using the iRule:
Both result in the F5 unit responding to the HTTP GET with a TCP RST, and logging the following error:
TCL error: Rule Selective_Compression - Error: Unknown error (line 1) invoked from within “COMPRESS::enable”
Any ideas what may be wrong?