码迷,mamicode.com
首页 > 编程语言 > 详细

python2.7处理https稍微好点的办法(坑得一笔)

时间:2016-07-30 18:02:22      阅读:154      评论:0      收藏:0      [点我收藏+]

标签:

from warnings import filterwarnings
filterwarnings(ignore)

r = requests.get(url, headers=headers, timeout=time_out, verify=False, allow_redirects=True)
r.keep_alive = False

 http://blog.itpub.net/22664653/viewspace-1986069/

python2.7处理https稍微好点的办法(坑得一笔)

标签:

原文地址:http://www.cnblogs.com/lly-001/p/5721289.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!