Python 的 HTTP 客户端开发包 urllib3

码农软件 · 软件分类 · 网络工具包 · 2019-02-24 21:29:15

软件介绍

urllib3 是 Python 的一个增强版的 HTTP 客户端开发包,它增强了 Python 标准库中的很多特性,包括:

  • 线程安全

  • 连接池

  • 客户端 SSL/TLS 验证.

  • 文件上传

  • 失败重试以及 HTTP 重定向

  • 支持 gzip 和 deflate 编码

  • 支持 HTTP 和 SOCKS 代理

  • 100% 测试覆盖率

示例代码:

>>> import urllib3
>>> http = urllib3.PoolManager()
>>> r = http.request('GET', 'http://httpbin.org/robots.txt')
>>> r.status
200
>>> r.data
'User-agent: *\nDisallow: /deny\n'


本文地址:https://www.codercto.com/soft/d/62.html

Mastering Bitcoin

Mastering Bitcoin

Andreas M. Antonopoulos / O'Reilly Media / 2014-12-20 / USD 34.99

Mastering Bitcoin tells you everything you need to know about joining one of the most exciting revolutions since the invention of the web: digital money. Bitcoin is the first successful digital curren......一起来看看 《Mastering Bitcoin》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具