What client / server protocols does python support out of the box?
Without installing third-party libraries, what client / server protocols does Python support out of the box?
+2
a source to share
1 answer
- Basic web protocols :
- Download from http, ftp and file: from
urllib
, but note that in python 3 that hasurllib.urlopen
moved tourllib2.urlopen
and is deprecated from python 2.6 - Download from https and http with basic proxy and authentication support using
urllib2
- http with
httplib
both server modulesBaseHTTPServer
,SimpleHTTPServer
andCGIHTTPServer
, but note that servers have been moved tohttp.server
in python 3 - Upload / download ftp with
ftplib
- telnet with
telnetlib
- Download from http, ftp and file: from
- Mail protocols :
- XML-RPC :
- XML RPC client with
xmlrpclib
both server modulesSimpleXMLRPCServer
andDocXMLRPCServer
, but servers have been moved toxmlrpc.server
in python 3
- XML RPC client with
- News reading protocols :
- NNTP with
nntplib
- NNTP with
+11
a source to share