The HTTP and FTP Protocols
Modules urllib
and
urllib2
are most often the handiest ways to access
servers for http
, https
,
and ftp
protocols. The Python standard library
also supplies specific modules to use for these data access
protocols.
The httplib Module
Module
httplib
supplies a class
HTTPConnection
to connect to an HTTP server.
The ftplib Module
The
ftplib
module supplies a class
FTP
to connect to an FTP server.
Get Python in a Nutshell 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.