Forum Discussion

Rob_77856's avatar
Rob_77856
Icon for Nimbostratus rankNimbostratus
Aug 07, 2011

iRule that serves HTML content issue with curly brackets

Hello all,

 

 

I am working with an iRule that servers up a 200 response and specific HTML content as a sorry server page. This page has to look a certain way which requires specific formatting in the

7 Replies

  • Hi Rob,

     

    This could be several different things. It would help a great deal if you can post up the iRule.

     

     

    Thanks,

     

    Bhattman
  • There are multiple Tcl interpreters used by BIG-IP at different times, so you can run into cases where an iRule might load via the command line, or iRule editor, or 'b load' but have issues with another. This may change per TMOS version/hotfix.

     

     

    The best thing to do it try, try, try again with different variations of the syntax. Watch out for curly braces, square brackets, white space, newlines, single quotes, double quotes, and escape sequences. In combination with the desired output and the interpreter sesitivities, you can probably find an acceptable solution. Once you find something that works, check the other interpretter modes to make sure it is a complete solution.

     

     

    It can be a pain, but isn't too uncommon when multiple interpreter instances are used.
  • There are multiple Tcl interpreters used by BIG-IP at different times, so you can run into cases where an iRule might load via the command line, or iRule editor, or 'b load' but have issues with another. This may change per TMOS version/hotfix.

     

     

    The best thing to do it try, try, try again with different variations of the syntax. Watch out for curly braces, square brackets, white space, newlines, single quotes, double quotes, and escape sequences. In combination with the desired output and the interpreter sesitivities, you can probably find an acceptable solution. Once you find something that works, check the other interpretter modes to make sure it is a complete solution.

     

     

    It can be a pain, but isn't too uncommon when multiple interpreter instances are used.
  • There are multiple Tcl interpreters used by BIG-IP at different times, so you can run into cases where an iRule might load via the command line, or iRule editor, or 'b load' but have issues with another. This may change per TMOS version/hotfix.

     

     

    The best thing to do it try, try, try again with different variations of the syntax. Watch out for curly braces, square brackets, white space, newlines, single quotes, double quotes, and escape sequences. In combination with the desired output and the interpreter sesitivities, you can probably find an acceptable solution. Once you find something that works, check the other interpretter modes to make sure it is a complete solution.

     

     

    It can be a pain, but isn't too uncommon when multiple interpreter instances are used.
  • There are multiple Tcl interpreters used by BIG-IP at different times, so you can run into cases where an iRule might load via the command line, or iRule editor, or 'b load' but have issues with another. This may change per TMOS version/hotfix.

     

     

    The best thing to do it try, try, try again with different variations of the syntax. Watch out for curly braces, square brackets, white space, newlines, single quotes, double quotes, and escape sequences. In combination with the desired output and the interpreter sesitivities, you can probably find an acceptable solution. Once you find something that works, check the other interpretter modes to make sure it is a complete solution.

     

     

    It can be a pain, but isn't too uncommon when multiple interpreter instances are used.
  • It would help if you could post the iRule. If your post gets munged, try attaching the iRule as a text file.

     

     

    Aaron