Forum Discussion
Arie
Oct 31, 2014Altostratus
Couple of options (there are more):
- Write to the log
- tcpdump
- Return a value to the client if the cookie exists.
Sample code for option 1:
when HTTP_REQUEST {
if { [HTTP::cookie exists "your-cookie-name"] } {
log local0.debug "Cookie found: [HTTP::cookie "your-cookie-name"]"
}
}
Sample code for option 3:
when HTTP_REQUEST {
if { [HTTP::cookie exists "your-cookie-name"] } {
set cookieValue
}
}
when HTTP_RESPONSE {
HTTP::header insert "X-Cookie" $cookieValue
}