I have written some code in Java using the java.net.URL class for reading content from a URL.
Using java net URL connection.
The URL is a secured URL (https).
For now, I have used the suggestion in this answer Dissable SSL Verification.
I have noticed that when I invoke certain URLs, I can get the response page, but for certain URLs (especially) ones related to security (user lists, group lists, etc...) I get only a blank response; I get a return code of 200 (Success) though.
When I invoke these URLs from the browser (Chrome, FireFox), I get a warning that the server is using a self-signed certificate.
I can Add an Exception to the browser and continue to the URL where I see the actual page (All URLs).
How do I simulate the Browser's 'Add Exception' in Java?
The answer suggested here telling-java-to-accept-self-signed-ssl-certificate, did not work for me. The answer does not explain how things work in the browser. My question is how do these URLs work in a browser after creating an exception. How do I create/simulate a browser like exception?