Python HTTP request Module URLLIB3

Source: Internet
Author: User
Urllib3

URLLIB3 is a powerful, sensible and friendly HTTP client program. Most of the python ecosystems are already in use and you should be urllib3. URLLIB3 brings many key features missing from the Python standard library:

Thread safety.

Connection pool.

Client SSL/TLS authentication.

Multiple encoded file uploads.

The Assistant retries the request and handles HTTP redirection.

Supports gzip and deflate encoding.

Proxy support for HTTP and socks.

100% test coverage.

>>> Import urllib3>>> http = urllib3. Poolmanager () >>> r = http.request (' GET ', ' >>> r.status ' >>> r.data ' user-agent: *\ndisallo W:/deny\n '


This article is from the "Operations Diary" blog, make sure to keep this source http://guyuyuan.blog.51cto.com/8666992/1942475

Python HTTP request Module URLLIB3

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.