Forum Discussion
Ben_Wilson_2412
Cirrus
Oct 09, 2013eval is HTTP:response
I thought there was a way to include evaluated expressions in the HTTP:response command.
Something like
when HTTP_REQUEST {
HTTP::respond 200 content {
Pretend this ...
Kevin_Stewart
Employee
Oct 09, 2013I basically want to list the headers that F5 received, and or modified, in an HTTP::response
Okay. Please try this then:
when HTTP_REQUEST {
set headerlist ""
foreach x [HTTP::header names] {
append headerlist "$x = [HTTP::header $x]
"
}
HTTP::respond 200 content "Request Headers:
$headerlist"
}
This will send back all of the client's request headers in formatted HTML.
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