Forum Discussion
Phong_Tang_7213
Altostratus
Mar 17, 2017How use BIG-IP to capture HTTP request and response
Hi gurus,
I want to use BIG-IP Virtual Server (with HTTP profile) and capture full HTTP request and response. Can I do that? We can not debug on the Client and the real Server.
Thanks
Phong...
oscarnet_69487
Nimbostratus
Mar 27, 2017HI you can use irule example
code
when HTTP_REQUEST {
set REQUEST_RECEIVE [clock clicks -milliseconds]
set uri [HTTP::uri]
set clientip [IP::client_addr]
set clientport [TCP::client_port]
}
when HTTP_RESPONSE {
set RESPONSE_RECEIVE [expr {[clock clicks -milliseconds] - $REQUEST_RECEIVE}]
log local0. "Server response took longer than ms: $RESPONSE_RECEIVE . TCP connection from [IP::client_addr]:[TCP::client_port] to [LB::server addr]:[LB::server port].Requested URI is ${uri}"
}
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