Forum Discussion
hoolio
Cirrostratus
Jun 13, 2006Using PROFILE::httpclass to get HTTP class configuration info
Hello,
I'm trying to understand how to access HTTP class characteristics and then use a rule to select between a set of HTTP classes based on the filters of the classes.
I found in the profile...
hoolio
Cirrostratus
Jun 13, 2006So I was thinking about this further and realized it might be more appropriate to ignore the filters of the HTTP class and include the logic of which HTTP class to direct a request within the rule itself.
I tried the following, but found that you can't set the HTTP class using HTTP::class my_class:
when HTTP_REQUEST {
HTTP::class "test"
}
Error:
01070151:3: Rule [select_http_class_rule] error: line 3: [wrong args] [HTTP::class "test"]
So that leaves me with a couple of questions:
1. Is it currently possible to set the HTTP class within an iRule? If so, what is the correct syntax?
2. Is it possible to retrieve the attributes of an HTTP class with an iRule?
Thanks,
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
