I wrote a socket server using Python 2.7 and the socket
module.
Everything works as expected when I issue an HTTP request: the server accepts it and ans
Try this. The module names have changed so that they are now part of the http.server
module (part of a standard installation) - see the note at the top of the SimpleHTTPServer documentation for Python 2. The main problem, though, is that you need to get an SSL certificate to secure connections with (the easiest way I believe is OpenSSL).