Forum Discussion
Ken_Wong_48678
Sep 20, 2005Historic F5 Account
change content type by irule
Hi guys,
I have written a test irule to change the content type of a specific page. I would like to change the content type of main.css from text/css to application/x-javascript.
...
Sep 20, 2005
I'll try to answer these one by one:
1) Are these truly global? IE: Can I access them from different VIPS/rules/etc? (vs. multiple iterations of the same irule)
I'm going to have to defer to unRuleY to answer this one. I know they are global within the given rule within a given Virtual Server's resource instance, but I am unsure as to the extent beyond that.
2) Is there a way to release a declared variable?
Use the TCL "unset" command to release and undefine a variable.
3) I haven't make much use of variables to date. (Just simple strings and small integers) Where is the best place to find out more about variable types and ranges?
The best place to look is the TCL Reference Manual on SourceForge
http://tmml.sourceforge.net/doc/tcl/
Click here
We have removed support for procedures and external IO calls but most of the other functions are available in our implementation.
4) Also would the TCL docs be the best place to find out about variable operations?
See 3. As for internal commands, you should see the BIG-IP Product Documentation on ask.f5.com and look in the iRules section.
-Joe
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