Forum Discussion

Srini_87152's avatar
Srini_87152
Icon for Cirrostratus rankCirrostratus
May 04, 2015

Header replace causing TCL errors

Hi DC,

 

We have using following rule for replace header for online.com to live.com. Application working fine but getting continuous TCL error on F5 /var/log/ltm.

 

Is there any syntax issue or any bug on software?

 

Please provide your recommendations.

 

when HTTP_REQUEST { if {[HTTP::header host] equals "online.com"} { HTTP::header replace Host "live.com" } }

 

tmm[8093]: 01220001:3: TCL error: /APM/irule_rewrite_online.com - Operation not supported (line 1) invoked from within "HTTP::header replace Host "live.com" " tmm1[8093]: 01220001:3: TCL error: /APM/irule_rewrite_online.com - Operation not supported (line 1) invoked from within "HTTP::header replace Host "live.com" "

 

2 Replies

  • kunjan's avatar
    kunjan
    Icon for Nimbostratus rankNimbostratus

    Hi Srini, do you have extra code or another iRule attached to the VS which does redirect or something?

     

  • THi's avatar
    THi
    Icon for Nimbostratus rankNimbostratus

    Do you have the host header name uncapitalised in your environment? I've run in a bit similar problems earlier with uncapitalised host header. By rfc the header names should be case-insensitive, but some servers treat capitalised and lower case headers as separate.