ID EN
HTTP Client

HTTPSConnection

Python 3.11

A subclass of HTTPConnection that uses SSL for communication with secure servers. Default port is 443. If context is specified, it must be a ssl.SSLContext instance describing the various SSL options.

Syntax

PYTHON
class http.client.HTTPSConnection(host, port=None, key_file=None, cert_file=None, [timeout, ]source_address=None, *, context=None, check_hostname=None, blocksize=8192)

See Also

HTTPConnection ssl.SSLContext Security considerations ssl.HAS_SNI ssl.SSLContext.post_handshake_auth set_alpn_protocols() ssl.SSLContext.load_cert_chain() ssl.create_default_context()