Forum Discussion
Greg_Burch
Nimbostratus
Mar 22, 2007Adding Multiple Headers
Has anyone had any experience with adding multiple HTTP headers within an HTTP profile (in the Header Insert field)? I would like to know what the delimiter would be between the headers. Or is this not even possible...do I have to create an IRule in order to add the second header?
3 Replies
Sort By
- swo0sh_gt_13163
Altostratus
Any idea how to log all of these custom header using log local0. statement? Would it be like
?log local0. "Custom HTTP headers are [HTTP::header]"
Thanks, Darshan
- kunjan
Nimbostratus
Both request and response logging hdrs
when HTTP_REQUEST { log local0. "Request URI = [HTTP::uri]" foreach x [HTTP::header names] { log local0. "Request header($x) = [HTTP::header $x]" } } when HTTP_RESPONSE { log local0. "Response status = [HTTP::status]" foreach x [HTTP::header names] { log local0. "Response header($x) = [HTTP::header $x]" } }
- swo0sh_gt_13163
Altostratus
Hi Kunjan,
Thanks a million! It works by printing all the HTTP headers to LTM logs.
It was really helpful. Cheers! Darshan
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