Logging (Capturing) HTTP and HTTPs content
Hi,
I am using squid-3.3.2 with libecap-0.2.0. I would like to write an ecap adapter that can log/capture the HTTP and (decrypt and log/capture) HTTPs content that passes through my squid server. For this I have enabled sslbump with DynamicSslCert and BumpSslServerFirst.
For the adaptor I am using the adapter_passthru.cc file as a template. However I am not able to figure our on how to getting the plain text/binary header, body, and trailer from libecap::Message. I would also like to know if
1. the logging can be done in the start function of Adapter:
void Adapter:
{
....
...
// code to dump content comes here
}
2. An ecap adaptor can receive HTTPs content in the clear from the squid proxy?
Regards,
Ashwin
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- eCAP Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Ashwin for more information if necessary.