7

I need to simulate somehow option -k (vide --insecure to ignore SSL certificate verification) for curl but using urllib2. Any clues?

bx2
  • 6,356
  • 5
  • 36
  • 40

1 Answers1

3

There is nothing special to do here. urllib2 does not do SSL certificate verification by default. There is a warning in the documentation http://docs.python.org/library/urllib2.html

Warning HTTPS requests do not do any verification of the server’s certificate.

Bruno
  • 119,590
  • 31
  • 270
  • 376
Mark Lavin
  • 24,664
  • 5
  • 76
  • 70