python接口自动化:python2/3 https忽略ssl证书验证

import ssl

ssl._create_default_https_context = ssl._create_unverified_context

 

InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised

posted @ 2017-07-17 17:55  Love_python  阅读(2492)  评论(0)    收藏  举报