Toni_Brown_2069
Jun 18, 2015Nimbostratus
Parsing request using iRules : trying to find the equivalent of scriptname
Hi,
I am trying to do a request header insert based on finding the 'scriptname' within the url, where the term scriptname is something I am familiar with from experiences with another reverse proxy server.
I have looked at the HTTP object properties and can't find an elegant solution for this that will be fast and reliable and I am still building up confidence with the iRules language.
For say a url of http://www.TSite.com/art/gallery.cgi/mammals?animal=dog&color=black
I want to get the bit that corresponds to /art/gallery.cgi
(this is just an example.. but my urls are similar in nature)
Any help would be really appreciated! :)
Thanks,
Toni