Added code for SSL Sockets, although I am unsure if it works. If you specify the secure website with unsecure port 80 it connects but not as the proxy...i think.