I'm trying to communicate to a server using a socket connection but I'm
not sure how to make it use TLS. I can get connected using the code
below.

socket.connect("myserver.com", 443);

However, it seems to be using SSLv2 and v3 according to ethereal. When I
do the following

socket.writeUTFBytes("GET /something HTTP/1.0\r\n\r\n");
socket.flush();

It never dispatched a socketData event. My guess is that I communicate
with the server properly using TLS, I will an expected result. Can
anybody advice? TIA

Reply via email to