iRule to take cookie from HTTP Response into HTTP Request via table
Sanitized version of an iRule. It’s main function is to take a cookie from a HTTP Response; put the value into a table and then insert into a HTTP request. The switch statement section has been str...
Published May 11, 2023
Version 1.0matfreem
Cirrus
Joined May 24, 2019
LiefZimmerman
Jun 05, 2023Admin
Thanks for the contribution matfreem.
Quick note on your code contribution.
- If you choose the </> button in the editor toolbar.
- Select language = tcl
- paste your content in.
when HTTP_RESPONSE {
if { [HTTP::header exists "Set-cookie" ] } {
set cookies [HTTP::cookie names]
It'll come out with some nice color-coded syntax.
(NOTE: there is a bug adding spaces above and below the codeblocks.
While that is being worked on in the background - you can alleviate the issue by leaving (or re-adding) this wrapper div in your content using the HTML button.
<div class="lia-message-template-content-zone">
...all your stuff in here...
</div>