title: How to check if url exists over https in java
body: <p>I know how to check if a url exists in using, see following posts.</p>
  
  <p><a href="https://stackoverflow.com/questions/4596447/java-check-if-file-exists-on-remote-server-using-its-url">Check if file exists on remote server using its URL</a></p>
  
  <p><a href="https://stackoverflow.com/questions/1378199/how-to-check-if-a-url-exists-or-returns-404-with-java">How to check if a URL exists or returns 404 with Java?</a></p>
  
  <p>The problem is if a ssl https url exists, i tried all suggestions in the above threads, and while they work fine on normal http urls, none of them work on a https file. </p>
  
  <p>Is it not possible?</p>
  
  <p>Suggestions? </p>