Web tier: servlets, JSP, Web frameworks: connection to https server
- Posted by: Buchanna Gajula
- Posted on: April 19 2001 14:52 EDT
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
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.