Forum Discussion
7 Replies
Sort By
- What_Lies_Bene1CirrostratusPlease ensure you don't have any HTTP Classes assigned to the Virtual Server. If you don't, try this, which I've only tweaked slightly;
when CLIENT_ACCEPTED { set hsl [HSL::open -proto UDP -pool xyz-pool] } when HTTP_REQUEST { if { [HTTP::uri] starts_with "/testme" } { HSL::send $hsl "MyTest [IP::local_addr] [HTTP::uri]" return } else { HTTP::respond 200 content "Something" noserver Content-Type "text/html" Connection "Close" } }
- What_Lies_Bene1Cirrostratus
I thought perhaps not putting any content in the quotes "" after '200 content' might be it but my test VE takes it just fine. Do you have more than one iRule assigned to the VS perhaps? Regardless, the error is stating that you have configured multiple redirects or responses in the rule (which would be a problem) but you clearly haven't, hence my queries about HTTP Classes and additional iRules.
- hooleylistCirrostratusYou can only send a redirect or HTTP response once per HTTP request. Trying to do more than one redirect or response will trigger this TCL runtime error.
- Robert_47833Altostratusoh,steve
- What_Lies_Bene1CirrostratusNo problem. Let us know if you need any help combining the two to overcome the error. Cheers
- Robert_47833Altostratuswhen this error shows,it means both redirect /respond will not work,right?
- What_Lies_Bene1CirrostratusCorrect, the two are mutually exclusive, you can't redirect the client elsewhere and then provide some content. Equally, you can't redirect twice or respond twice.