Forum Discussion
Pierce_Fortin
Dec 12, 2017Nimbostratus
I wrongly understood how cookies were formatted. This works for me:
when HTTP_RESPONSE {
set cookies [HTTP::cookie names]
foreach cookie $cookies {
set cookie_value [HTTP::cookie $cookie]
set cookie_path [string map -nocase {"/" "/FOO-BAR/"}
[HTTP::cookie path $cookie]]
HTTP::cookie remove $cookie
HTTP::cookie insert name Special-Name value $cookie_value path $cookie_path
}
}