I need to simulate somehow option -k (vide --insecure to ignore SSL certificate verification) for curl but using urllib2. Any clues?
I need to simulate somehow option -k (vide –insecure to ignore SSL certificate verification)
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is nothing special to do here.
urllib2does not do SSL certificate verification by default. There is a warning in the documentation http://docs.python.org/library/urllib2.html