# -*- coding: utf-8 -*-
import socket, ssl, threading, select
def conecta(c, a):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(('123.456.789.123', 444))
s = ssl.wrap_socket(s, ssl.PROTOCOL_SSLv23)
c.recv(8192) # Descarto Requisição Real.
s.send(b"GET / HTTP/1.1\r\n\r\n") # Requisição GET.
s.send(b"CONNECT host:port HTTP/1.1\r\n\r\n") # Requisição CONNECT.
Which one to use?