| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <link rel="STYLESHEET" href="lib.css" type='text/css' /> |
| 5 | <link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" /> |
| 6 | <link rel='start' href='../index.html' title='Python Documentation Index' /> |
| 7 | <link rel="first" href="lib.html" title='Python Library Reference' /> |
| 8 | <link rel='contents' href='contents.html' title="Contents" /> |
| 9 | <link rel='index' href='genindex.html' title='Index' /> |
| 10 | <link rel='last' href='about.html' title='About this document...' /> |
| 11 | <link rel='help' href='about.html' title='About this document...' /> |
| 12 | <link rel="next" href="netdata.html" /> |
| 13 | <link rel="prev" href="profile.html" /> |
| 14 | <link rel="parent" href="lib.html" /> |
| 15 | <link rel="next" href="module-webbrowser.html" /> |
| 16 | <meta name='aesop' content='information' /> |
| 17 | <title>11. Internet Protocols and Support </title> |
| 18 | </head> |
| 19 | <body> |
| 20 | <DIV CLASS="navigation"> |
| 21 | <div id='top-navigation-panel' xml:id='top-navigation-panel'> |
| 22 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> |
| 23 | <tr> |
| 24 | <td class='online-navigation'><a rel="prev" title="10.10.2 Examples" |
| 25 | href="node465.html"><img src='../icons/previous.png' |
| 26 | border='0' height='32' alt='Previous Page' width='32' /></A></td> |
| 27 | <td class='online-navigation'><a rel="parent" title="Python Library Reference" |
| 28 | href="lib.html"><img src='../icons/up.png' |
| 29 | border='0' height='32' alt='Up One Level' width='32' /></A></td> |
| 30 | <td class='online-navigation'><a rel="next" title="11.1 webbrowser " |
| 31 | href="module-webbrowser.html"><img src='../icons/next.png' |
| 32 | border='0' height='32' alt='Next Page' width='32' /></A></td> |
| 33 | <td align="center" width="100%">Python Library Reference</td> |
| 34 | <td class='online-navigation'><a rel="contents" title="Table of Contents" |
| 35 | href="contents.html"><img src='../icons/contents.png' |
| 36 | border='0' height='32' alt='Contents' width='32' /></A></td> |
| 37 | <td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png' |
| 38 | border='0' height='32' alt='Module Index' width='32' /></a></td> |
| 39 | <td class='online-navigation'><a rel="index" title="Index" |
| 40 | href="genindex.html"><img src='../icons/index.png' |
| 41 | border='0' height='32' alt='Index' width='32' /></A></td> |
| 42 | </tr></table> |
| 43 | <div class='online-navigation'> |
| 44 | <b class="navlabel">Previous:</b> |
| 45 | <a class="sectref" rel="prev" href="node465.html">10.10.2 Examples</A> |
| 46 | <b class="navlabel">Up:</b> |
| 47 | <a class="sectref" rel="parent" href="lib.html">Python Library Reference</A> |
| 48 | <b class="navlabel">Next:</b> |
| 49 | <a class="sectref" rel="next" href="module-webbrowser.html">11.1 webbrowser </A> |
| 50 | </div> |
| 51 | <hr /></div> |
| 52 | </DIV> |
| 53 | <!--End of Navigation Panel--> |
| 54 | |
| 55 | <H1><A NAME="SECTION0013000000000000000000"></A><A NAME="internet"></A> |
| 56 | <BR> |
| 57 | 11. Internet Protocols and Support |
| 58 | </H1> |
| 59 | |
| 60 | <P> |
| 61 | <a id='l2h-3139' xml:id='l2h-3139'></a> |
| 62 | |
| 63 | <P> |
| 64 | The modules described in this chapter implement Internet protocols and |
| 65 | support for related technology. They are all implemented in Python. |
| 66 | Most of these modules require the presence of the system-dependent |
| 67 | module <tt class="module"><a href="module-socket.html">socket</a></tt><a id='l2h-3140' xml:id='l2h-3140'></a>, which is currently |
| 68 | supported on most popular platforms. Here is an overview: |
| 69 | |
| 70 | <P> |
| 71 | <table class='synopsistable' valign='baseline'> |
| 72 | <tr class='oddrow'> |
| 73 | <td><b><tt class='module'><a href='module-webbrowser.html'>webbrowser</a></tt></b></td> |
| 74 | <td> </td> |
| 75 | <td class='synopsis'>Easy-to-use controller for Web browsers.</td></tr> |
| 76 | <tr><td><b><tt class='module'><a href='module-cgi.html'>cgi</a></tt></b></td> |
| 77 | <td> </td> |
| 78 | <td class='synopsis'>Common Gateway Interface support, used to interpret |
| 79 | forms in server-side scripts.</td></tr> |
| 80 | <tr class='oddrow'> |
| 81 | <td><b><tt class='module'><a href='module-cgitb.html'>cgitb</a></tt></b></td> |
| 82 | <td> </td> |
| 83 | <td class='synopsis'>Configurable traceback handler for CGI scripts.</td></tr> |
| 84 | <tr><td><b><tt class='module'><a href='module-urllib.html'>urllib</a></tt></b></td> |
| 85 | <td> </td> |
| 86 | <td class='synopsis'>Open an arbitrary network resource by URL (requires sockets).</td></tr> |
| 87 | <tr class='oddrow'> |
| 88 | <td><b><tt class='module'><a href='module-urllib2.html'>urllib2</a></tt></b></td> |
| 89 | <td> </td> |
| 90 | <td class='synopsis'>An extensible library for opening URLs using a variety of |
| 91 | protocols</td></tr> |
| 92 | <tr><td><b><tt class='module'><a href='module-httplib.html'>httplib</a></tt></b></td> |
| 93 | <td> </td> |
| 94 | <td class='synopsis'>HTTP and HTTPS protocol client (requires sockets).</td></tr> |
| 95 | <tr class='oddrow'> |
| 96 | <td><b><tt class='module'><a href='module-ftplib.html'>ftplib</a></tt></b></td> |
| 97 | <td> </td> |
| 98 | <td class='synopsis'>FTP protocol client (requires sockets).</td></tr> |
| 99 | <tr><td><b><tt class='module'><a href='module-gopherlib.html'>gopherlib</a></tt></b></td> |
| 100 | <td> </td> |
| 101 | <td class='synopsis'>Gopher protocol client (requires sockets).</td></tr> |
| 102 | <tr class='oddrow'> |
| 103 | <td><b><tt class='module'><a href='module-poplib.html'>poplib</a></tt></b></td> |
| 104 | <td> </td> |
| 105 | <td class='synopsis'>POP3 protocol client (requires sockets).</td></tr> |
| 106 | <tr><td><b><tt class='module'><a href='module-imaplib.html'>imaplib</a></tt></b></td> |
| 107 | <td> </td> |
| 108 | <td class='synopsis'>IMAP4 protocol client (requires sockets).</td></tr> |
| 109 | <tr class='oddrow'> |
| 110 | <td><b><tt class='module'><a href='module-nntplib.html'>nntplib</a></tt></b></td> |
| 111 | <td> </td> |
| 112 | <td class='synopsis'>NNTP protocol client (requires sockets).</td></tr> |
| 113 | <tr><td><b><tt class='module'><a href='module-smtplib.html'>smtplib</a></tt></b></td> |
| 114 | <td> </td> |
| 115 | <td class='synopsis'>SMTP protocol client (requires sockets).</td></tr> |
| 116 | <tr class='oddrow'> |
| 117 | <td><b><tt class='module'><a href='module-smtpd.html'>smtpd</a></tt></b></td> |
| 118 | <td> </td> |
| 119 | <td class='synopsis'>Implement a flexible SMTP server</td></tr> |
| 120 | <tr><td><b><tt class='module'><a href='module-telnetlib.html'>telnetlib</a></tt></b></td> |
| 121 | <td> </td> |
| 122 | <td class='synopsis'>Telnet client class.</td></tr> |
| 123 | <tr class='oddrow'> |
| 124 | <td><b><tt class='module'><a href='module-urlparse.html'>urlparse</a></tt></b></td> |
| 125 | <td> </td> |
| 126 | <td class='synopsis'>Parse URLs into components.</td></tr> |
| 127 | <tr><td><b><tt class='module'><a href='module-SocketServer.html'>SocketServer</a></tt></b></td> |
| 128 | <td> </td> |
| 129 | <td class='synopsis'>A framework for network servers.</td></tr> |
| 130 | <tr class='oddrow'> |
| 131 | <td><b><tt class='module'><a href='module-BaseHTTPServer.html'>BaseHTTPServer</a></tt></b></td> |
| 132 | <td> </td> |
| 133 | <td class='synopsis'>Basic HTTP server (base class for |
| 134 | <tt class="class">SimpleHTTPServer</tt> and <tt class="class">CGIHTTPServer</tt>).</td></tr> |
| 135 | <tr><td><b><tt class='module'><a href='module-SimpleHTTPServer.html'>SimpleHTTPServer</a></tt></b></td> |
| 136 | <td> </td> |
| 137 | <td class='synopsis'>This module provides a basic request handler for HTTP |
| 138 | servers.</td></tr> |
| 139 | <tr class='oddrow'> |
| 140 | <td><b><tt class='module'><a href='module-CGIHTTPServer.html'>CGIHTTPServer</a></tt></b></td> |
| 141 | <td> </td> |
| 142 | <td class='synopsis'>This module provides a request handler for HTTP servers |
| 143 | which can run CGI scripts.</td></tr> |
| 144 | <tr><td><b><tt class='module'><a href='module-cookielib.html'>cookielib</a></tt></b></td> |
| 145 | <td> </td> |
| 146 | <td class='synopsis'>Cookie handling for HTTP clients</td></tr> |
| 147 | <tr class='oddrow'> |
| 148 | <td><b><tt class='module'><a href='module-Cookie.html'>Cookie</a></tt></b></td> |
| 149 | <td> </td> |
| 150 | <td class='synopsis'>Support for HTTP state management (cookies).</td></tr> |
| 151 | <tr><td><b><tt class='module'><a href='module-xmlrpclib.html'>xmlrpclib</a></tt></b></td> |
| 152 | <td> </td> |
| 153 | <td class='synopsis'>XML-RPC client access.</td></tr> |
| 154 | <tr class='oddrow'> |
| 155 | <td><b><tt class='module'><a href='module-SimpleXMLRPCServer.html'>SimpleXMLRPCServer</a></tt></b></td> |
| 156 | <td> </td> |
| 157 | <td class='synopsis'>Basic XML-RPC server implementation.</td></tr> |
| 158 | <tr><td><b><tt class='module'><a href='module-DocXMLRPCServer.html'>DocXMLRPCServer</a></tt></b></td> |
| 159 | <td> </td> |
| 160 | <td class='synopsis'>Self-documenting XML-RPC server implementation.</td></tr> |
| 161 | <tr class='oddrow'> |
| 162 | <td><b><tt class='module'><a href='module-asyncore.html'>asyncore</a></tt></b></td> |
| 163 | <td> </td> |
| 164 | <td class='synopsis'>A base class for developing asynchronous socket |
| 165 | handling services.</td></tr> |
| 166 | <tr><td><b><tt class='module'><a href='module-asynchat.html'>asynchat</a></tt></b></td> |
| 167 | <td> </td> |
| 168 | <td class='synopsis'>Support for asynchronous command/response protocols.</td></tr> |
| 169 | </table> |
| 170 | |
| 171 | <BR> |
| 172 | <DIV CLASS="navigation"> |
| 173 | <div class='online-navigation'> |
| 174 | <p></p><hr /> |
| 175 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> |
| 176 | <tr> |
| 177 | <td class='online-navigation'><a rel="prev" title="10.10.2 Examples" |
| 178 | href="node465.html"><img src='../icons/previous.png' |
| 179 | border='0' height='32' alt='Previous Page' width='32' /></A></td> |
| 180 | <td class='online-navigation'><a rel="parent" title="Python Library Reference" |
| 181 | href="lib.html"><img src='../icons/up.png' |
| 182 | border='0' height='32' alt='Up One Level' width='32' /></A></td> |
| 183 | <td class='online-navigation'><a rel="next" title="11.1 webbrowser " |
| 184 | href="module-webbrowser.html"><img src='../icons/next.png' |
| 185 | border='0' height='32' alt='Next Page' width='32' /></A></td> |
| 186 | <td align="center" width="100%">Python Library Reference</td> |
| 187 | <td class='online-navigation'><a rel="contents" title="Table of Contents" |
| 188 | href="contents.html"><img src='../icons/contents.png' |
| 189 | border='0' height='32' alt='Contents' width='32' /></A></td> |
| 190 | <td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png' |
| 191 | border='0' height='32' alt='Module Index' width='32' /></a></td> |
| 192 | <td class='online-navigation'><a rel="index" title="Index" |
| 193 | href="genindex.html"><img src='../icons/index.png' |
| 194 | border='0' height='32' alt='Index' width='32' /></A></td> |
| 195 | </tr></table> |
| 196 | <div class='online-navigation'> |
| 197 | <b class="navlabel">Previous:</b> |
| 198 | <a class="sectref" rel="prev" href="node465.html">10.10.2 Examples</A> |
| 199 | <b class="navlabel">Up:</b> |
| 200 | <a class="sectref" rel="parent" href="lib.html">Python Library Reference</A> |
| 201 | <b class="navlabel">Next:</b> |
| 202 | <a class="sectref" rel="next" href="module-webbrowser.html">11.1 webbrowser </A> |
| 203 | </div> |
| 204 | </div> |
| 205 | <hr /> |
| 206 | <span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span> |
| 207 | </DIV> |
| 208 | <!--End of Navigation Panel--> |
| 209 | <ADDRESS> |
| 210 | See <i><a href="about.html">About this document...</a></i> for information on suggesting changes. |
| 211 | </ADDRESS> |
| 212 | </BODY> |
| 213 | </HTML> |