Forum Discussion
mraful_64014
Nimbostratus
Nov 16, 2011http::respond Set-Cookie
I have used the samples from the Wiki to create a response from the F5, like so
set cookie [format "%s=%s; Path=/; Domain=%s" $ckname $ckvalue ".foo.com" ]
HTTP::respond 200 content...
nitass
Employee
Nov 16, 2011this seems to be okay on my unit.
[root@ve1023:Active] config b rule myrule list
rule myrule {
when HTTP_REQUEST {
set content "test"
set cookie "mycookie=1234"
HTTP::respond 200 content $content "Content-type" "text/html" "Set-Cookie" $cookie
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects