Forum Discussion
m_137079
Nimbostratus
Mar 06, 2014Getting all the response headers without using a loop
I need to log all the response headers we are sending back to the customer and would like to know if there exists an option like [HTTP::request] for the response. Any input is much appreciated
Pre...
Kevin_Stewart
Employee
Mar 06, 2014Sadly there is no HTTP::response command. The best way to get this data, in my opinion, is with a TCP event:
when SERVER_CONNECTED {
TCP::collect
}
when SERVER_DATA {
set resp_headers [findstr [TCP::payload] "" 0 "\r\n\r\n"]
log local0. $resp_headers
TCP::release
}
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