6

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

bx2
  • 6,090
  • 5
  • 32
  • 38

1 Answers1

4

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
  • 115,278
  • 29
  • 262
  • 368
Mark Lavin
  • 23,946
  • 4
  • 73
  • 67