Forum Discussion
vivek_76299
Nimbostratus
Jan 20, 2012Help needed regarding HTTP downgrade using iRule - Getting TCL Error
Hi All,
We are using an iRule to downgrade some specific responses from HTTP1.1 to HTTP1.0. Below is the iRule.
iRule:
----------------------
when HTTP_RESPONSE{
if { ([HTTP::header "content-Type"] starts_with "text/csv") || ([HTTP::header "content-Type"] starts_with "application/ms-excel")} {
if {[HTTP::version] == "1.1" } {
HTTP::version "1.0"
}
}
}
------------------------
We see below TCL errors in ltm logs. Can someone please help on these errors.
Errors:
Jan 19 15:12:43 local/tmm2 err tmm2[6237]: 01220001:3: TCL error: ir_downgrade_HTTP10 - Illegal argument. Can't execute in the current context. (line 1) invoked from within "HTTP::header "Content-Type""
Please suggest.
Thanks in advance.
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