Forum Discussion
hooleylist
Nov 27, 2009Cirrostratus
Hi Romain,
In 10.x, you can no longer access classes directly as TCL lists. So instead of lindex, you can use the new class command (Click here):
HTTP::respond 400 content [class element -value 0 class_badrequest_page] "Content-Type" "text/html"
If you're using an external file you'll want to change the format to use := as the separator (replacing test with the actual html):
cat /var/class/badrequest.html
html := "test",
The class page has an example of this.
Aaron