Forum Discussion
hooleylist
Jun 13, 2006Cirrostratus
So 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