Forum Discussion
Sekhar
Nimbostratus
Mar 25, 2015Capturing HTTP Header Info
Hi,
Please help me out in capturing the HTTP header info when a server is sending data to external client through F5.
Sample info:
content-length:2756
----------------------------...
Mar 25, 2015
The easiest way is to assign a HTTP profile to your virtual server so you can make use of the HTTP parser and helper commands. Here's a CodeShare entry that logs all request and response headers in an HTTP connection
https://devcentral.f5.com/wiki/iRules.LogHttpHeaders.ashx
If you can't use an HTTP profile, you'll need to use the TCP::payload command to get the full content and then write some string processing to pull the values out.
-Joe
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