I need to somehow simulate the -k option (vide --insecure to ignore SSL certificate verification) for curl , but using urllib2 . Any clues?
-k
--insecure
curl
urllib2
There is nothing special here. urllib2 does not check SSL certificate by default. The documentation has a warning http://docs.python.org/library/urllib2.html
Warning HTTPS requests do not validate server certificates.
Source: https://habr.com/ru/post/921684/More articles:Choose between list or dictionary - collectionsApplying CSS rules only if an element is specified for 2 classes - cssGiven a sorted integer array, how can binary search trees be generated? - algorithmPrint to clipboard or reuse code - cHow to accurately determine the maximum scroll position of a page? - javascriptScala actor inefficiency issue - javapython: How to determine when my thread becomes orphaned? - pythonPHP Scrape Article Excerpt as Readability - phpusing readability API to clear the most relevant page image - phpExtract php from page - phpAll Articles