I am writing a simple program in Java that receives connection requests from a browser (e.g. Firefox), parses the request for statistical information, and then redirects the request to its original destination. The program then reads the response from the recipient, analyzes the response for statistical information, then redirects the response to the browser.
The pseudo-code of this operation is as follows:
This works well with HTTP connections, but I get connection reset for HTTPS connections.
NOTE. I know the difference between HTTP and HTTPS connections, which, unlike HTTP, is not just a one-time send , and then some receives . My code for HTTPS reads as much as needed, and also writes as much as necessary.
Why do I get connections from any HTTPS server (for example, https://www.google.com , https://www.comodo.com , etc.) Am I trying to connect ?!
source share