Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

1K
Vistas
How to disable ssl verification for http.client.HTTPSConnection class in python?

In the official doc of HTTP PROTOCOL CLIENT

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

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.

Is there any option to disable ssl verification like python requests library as verify=fasle

For some reasons I can't use HTTPConnection class which would be a straight forward solution. I have to use HTTPSConnection and work with

HTTPConnection.putrequest()

to send request without the ssl verification.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

while creating https connection make sure that you pass context parameter as follows

import http.client
import ssl

conn = http.client.HTTPSConnection(
    HOSTNAME,
    context = ssl._create_unverified_context()
)
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda