Forum Discussion
MW1
Cirrus
Jul 02, 2010Is this feasible - match uri value from local value in file?
All,
my company has asked me if it is possible to match a URI in a request from a value in a local file, if the value matches the F5 would then insert a encrypted cookie with the client IP (...
hoolio
Cirrostratus
Jul 04, 2010As Chris suggested, you could use a datagroup to store the values you want to check the URI against. You'd probably want to set a variable in the request tracking whether to insert a cookie in the response this could be based on the URI and/or whether the request contains a valid cookie. You could then check that variable in HTTP_RESPONSE and use HTTP::cookie insert and HTTP::cookie encrypt to set an encrypted cookie. See the HTTP::cookie wiki page for details:
http://devcentral.f5.com/wiki/default.aspx/iRules/http__cookie
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
