The difference between URLLIB,URLLIB2 and URLLIB3

Source: Internet
Author: User
In Python's network module, the most frequently used is urllib, because it contains the way to open the URL to send the request, but Python urllib function, along with the development of the Internet, also in the iterative progress, so there are urllib,urllib2 and URLLIB3, what's the difference between them, the following one by one illustrates:

1.) The first built-in network request module in Python is Urllib, and we can look at all the methods in Urllib:

2.) All methods in the URLLIB2 module are more focused on services for HTTP requests:

3.) The URLLIB3 module is not built into Python and requires additional installation and can be quickly downloaded and installed via pip install URLLIB3:

Combining all the features of the three seen above, it is not difficult to find that urllib focuses on URL basic request construction, URLLIB2 focuses on the processing of HTTP protocol requests, while URLLIB3 is serving the upgraded HTTP 1.1 standard with efficient HTTP connection pool management and HTTP The function library for proxy services, from Urllib to Urllib2 and URLLIB3, is a wave of upgrades from the Universal Network Connection service to the head application of the Internet network: support for long-connected HTTP access, and the continuous facilitation of network access.

For more information on Python language, go to 51Testing Software Test Network (http://www.51testing.com).

The difference between URLLIB,URLLIB2 and URLLIB3

Related Article

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.