Forum Discussion
commsmonkey_172
Nimbostratus
Sep 30, 2011Store variable from STREAM::expression and use in HTTP_RESPONSE context
Hi F5ers, I've been looking for a way to store the stream matched hostname in a HREF from a HTML stream. As I rewrite the content from internal domain to external domain using...
hoolio
Cirrostratus
Oct 04, 2011What are you trying to do? When you say it's not working, what is or isn't happening?
Inserting a cookie and then sending a redirect in HTTP_REQUEST isn't going to work. In HTTP_REQUEST, the HTTP::cookie insert will insert a cookie in the request proxied to the pool member. If you redirect the request, that redirect won't have the cookie set. If you want to insert a cookie in a redirect response, you can use HTTP::respond:
http://devcentral.f5.com/wiki/iRules.http__respond.ashx
Aaron
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