Forum Discussion
Roman_80473
Nimbostratus
Jul 01, 2011How to find HOST protocol inside iRule?
Hi folks,
Is there a way to find host protocol inside HTTP_REQUEST event in iRule? I can get host ([HTTP::host] ) and uri ([HTTP::uri]), but not sure about protocol.
Any help ...
Can you give a few sample strings for each case? We should be able to adapt this to iRule code using scan or string commands instead of regexes for better performance.
http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/1086476/iRules-10118Revisiting-the-TCL-Scan-Command.aspx
http://www.tcl.tk/man/tcl8.4/TclCmd/scan.htm
Aaron