Forum Discussion

Ido_Katz_38061's avatar
Ido_Katz_38061
Icon for Nimbostratus rankNimbostratus
Aug 30, 2010

http::Respond with Cookie

Hello Gents,

 

 

If have a little problem with my irule:

 

 

This is a part from the irule:

 

 

HTTP::respond 301 Location "http://www.prp1-ezfx.com" "Set-Cookie" "QQQQQQQQQQQQQQQQQ=1; domain=.prp1-ezfx.com; expiry=Mon, 30 Aug 2010 23:41:33 GMT; path=/"

 

 

I'm trying to combine http respond with cookie but from some reason I cannot see it.(checked by fiddler)

 

 

Any suggestions?

 

 

Thanks

1 Reply

  • Here's my syntax:

              set host_used [HTTP::host]
              set ckname "example"
              set ckvalue "example"
              set cookie [format "%s=%s; path=/; domain=%s" $ckname $ckvalue "$host_used"]
            HTTP::respond 302 Location "http://$host_used" "Set-Cookie" $cookie