Capturing https header from Java

Sorry in advance for my not perfect english.

I am trying to capture realtime http / https traffic from a Java program. Thanks to the Jnetpcap library, I was able to do this quite easily, but for https traffic, I cannot get only the packet headers, even if I ask to capture all the tcp packets without a port filter. I don't understand how sofwares how Fiddler manages to do this for example. have a domain name like facebook.com or google.com.

Is there a way to do this in Java?

Thank!

+3


source to share


1 answer


For HTTPS, Fiddler uses its own SSL certificate. Thus, the connection is secure from the client and server point of view. Fiddler - Man-In-the-Middle (Proxy) capable of decrypting incoming data from the client and then encrypting it for the server.



0


source







All Articles