connection to https server

Discussions

Web tier: servlets, JSP, Web frameworks: connection to https server

  1. connection to https server (1 messages)

    hi Team,

    I want to know the https server is live or not through the connecting to it , Can anybody suggest me how to know and connect to it?

    Thanks in advance

    Buchanna
  2. connection to https server[ Go to top ]

    there are number of ways to do it.

    u can use java.net.URL.openConnection("https://www.theserverside.com") and then catch the exception and see whether the connection opened or not.

    or u can try opening a more direct socket connection to the server. i dont quite recollect the port on which https listens. but once u know that its easy.