Yozzer
Dec 18, 2014Nimbostratus
Cookies
Hi
Im having an issue with Cookies not being accepted at the server unless they are within the same Cookie header:
Cookie: blah=blah; blahs=blahs;
If there are two Cookie headers then...
I have:
when HTTP_REQUEST {
Merge cookies and insert cookie that changes the URL
set hostaddr [HTTP::host]
set existing cookies
set cookie_names [HTTP::cookie names] if { $cookie_names ne "" } { foreach cookie $cookie_names { set cookie_value [HTTP::cookie $cookie] HTTP::cookie remove $cookie HTTP::cookie insert name $cookie value $cookie_value path / version 1 } } }
But I want to also merge a new cookie generated in the irule such as this:
HTTP::header insert "Cookie" "Url=https://$hostaddr/server.aspx"