Forum Discussion
How use BIG-IP to capture HTTP request and response
Hello,
In fact you can use tcpdump but there is 2 problem with tcpdump :
1) If it is HTTPS, you will be forced to decrypted the traffic otherwise you will not view the request and response in clear text. 2) The second problem is that you must launched manually each time you want to capture traffic
My suggestion is to use irule to log all request and response header. This requires to have a VS with HTTP profile (Layer 7 VS "Standard").
You have to add an irule that will look like this one
Code
when HTTP_REQUEST {
set request "Client IP : [IP::client_addr] Host: [HTTP::host] [HTTP::method] [HTTP::uri]"
}
when HTTP_RESPONSE {
set response "Status: [HTTP::status] Content-Type: [HTTP::header "Content-Type"] Content-Length: [HTTP::header "Content-Length"] "
log local0. "Request --> $request Response --> $response"
}
I think that you can find many example of more complete "debug-irule" or you can adapt it to your need
Hope that this helps
Recent Discussions
Related Content
* 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