Api server connection test back to using sockets.

I'm just not sure if I'm guaranteed the server being tested is
actually running with HTTPS even If I'm testing against a connection at
port 443.