The HTTP and FTP Protocols
Modules urllib
and urllib2
are often the handiest ways to access servers for http, https, and ftp protocols. The Python standard library also supplies specific modules for these protocols. The protocols’ specifications are at http://www.ietf.org/rfc/rfc2616.txt, http://www.ietf.org/rfc/rfc2818.txt, and http://www.ietf.org/rfc/rfc959.txt.
The httplib Module
Module httplib
supplies a class HTTPConnection
to connect to an HTTP server.
HTTPConnection |
Returns an instance Instance |
close |
Closes the connection to the HTTP server. |
getresponse |
Returns an instance
|
Get Python in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.