HAProxy community

Haproxy get response body

Hello,

I use Haproxy as a TCP forwarder to multi proxy sub servers and I would like to know if I can get the response body & cookie even if the site use https ? (does these data are encrypted due to ssl ?)

Thanks for your help :slight_smile:

You cannot access anything HTTP related if the traffic is SSL encrypted (HTTPS), and you are just passing it through without decrypting it, because like you say, it’s encrypted.

Not sure what you mean by “get the response body and cookies”.

Thanks for your answer.

Is it possible to use my own ssl certificate ?

There is why I would like to achive :

Someone send a POST request to INSTAGRAM through Haproxy, I would like to capture it, read all the post data and the response header / body of the request.

No, because you cannot get the SSL certificate of Instagram, same as you cannot get the SSL certificate of a bank, capturing the request and response data of online banking transactions.

That is unless you are able to install your own CA on the client device.

Also haproxy is a reverse proxy, with very limited forward proxy capabilities.