📄 internet.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>11. Internet Protocols and Support </title>
<META NAME="description" CONTENT="11. Internet Protocols and Support ">
<META NAME="keywords" CONTENT="lib">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="STYLESHEET" href="lib.css" tppabs="http://www.python.org/doc/current/lib/lib.css">
<LINK REL="next" href="netdata.html" tppabs="http://www.python.org/doc/current/lib/netdata.html">
<LINK REL="previous" href="profile.html" tppabs="http://www.python.org/doc/current/lib/profile.html">
<LINK REL="up" HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html">
<LINK REL="next" href="module-webbrowser.html" tppabs="http://www.python.org/doc/current/lib/module-webbrowser.html">
</head>
<body>
<DIV CLASS="navigation"><table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A href="profile-HotProfile.html" tppabs="http://www.python.org/doc/current/lib/profile-HotProfile.html"><img src="previous.gif" tppabs="http://www.python.org/doc/current/icons/previous.gif" border="0" height="32"
alt="Previous Page" width="32"></A></td>
<td><A HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html"><img src="up.gif" tppabs="http://www.python.org/doc/current/icons/up.gif" border="0" height="32"
alt="Up One Level" width="32"></A></td>
<td><A href="module-webbrowser.html" tppabs="http://www.python.org/doc/current/lib/module-webbrowser.html"><img src="next.gif" tppabs="http://www.python.org/doc/current/icons/next.gif" border="0" height="32"
alt="Next Page" width="32"></A></td>
<td align="center" width="100%">Python Library Reference</td>
<td><A href="contents.html" tppabs="http://www.python.org/doc/current/lib/contents.html"><img src="contents.gif" tppabs="http://www.python.org/doc/current/icons/contents.gif" border="0" height="32"
alt="Contents" width="32"></A></td>
<td><a href="modindex.html" tppabs="http://www.python.org/doc/current/lib/modindex.html" title="Module Index"><img src="modules.gif" tppabs="http://www.python.org/doc/current/icons/modules.gif" border="0" height="32"
alt="Module Index" width="32"></a></td>
<td><A href="genindex.html" tppabs="http://www.python.org/doc/current/lib/genindex.html"><img src="index.gif" tppabs="http://www.python.org/doc/current/icons/index.gif" border="0" height="32"
alt="Index" width="32"></A></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" href="profile-HotProfile.html" tppabs="http://www.python.org/doc/current/lib/profile-HotProfile.html">10.8.2 HotProfile Class</A>
<b class="navlabel">Up:</b> <a class="sectref" HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html">Python Library Reference</A>
<b class="navlabel">Next:</b> <a class="sectref" href="module-webbrowser.html" tppabs="http://www.python.org/doc/current/lib/module-webbrowser.html">11.1 webbrowser </A>
<br><hr></DIV>
<!--End of Navigation Panel-->
<H1>
<BR>
11. Internet Protocols and Support
</H1>
<P>
<P>
The modules described in this chapter implement Internet protocols and
support for related technology. They are all implemented in Python.
Most of these modules require the presence of the system-dependent
module <tt class='module'><a href="module-socket.html" tppabs="http://www.python.org/doc/current/lib/module-socket.html">socket</a></tt>, which is currently
supported on most popular platforms. Here is an overview:
<P>
<table class='synopsistable'>
<tr><td><b><tt class='module'><a href="module-webbrowser.html" tppabs="http://www.python.org/doc/current/lib/module-webbrowser.html">webbrowser</a></tt></b></td>
<td class='synopsis'>Easy-to-use controller for Web browsers.</td></tr>
<tr><td><b><tt class='module'><a href="module-cgi.html" tppabs="http://www.python.org/doc/current/lib/module-cgi.html">cgi</a></tt></b></td>
<td class='synopsis'>Common Gateway Interface support, used to interpret
forms in server-side scripts.</td></tr>
<tr><td><b><tt class='module'><a href="module-urllib.html" tppabs="http://www.python.org/doc/current/lib/module-urllib.html">urllib</a></tt></b></td>
<td class='synopsis'>Open an arbitrary network resource by URL (requires sockets).</td></tr>
<tr><td><b><tt class='module'><a href="module-httplib.html" tppabs="http://www.python.org/doc/current/lib/module-httplib.html">httplib</a></tt></b></td>
<td class='synopsis'>HTTP protocol client (requires sockets).</td></tr>
<tr><td><b><tt class='module'><a href="module-ftplib.html" tppabs="http://www.python.org/doc/current/lib/module-ftplib.html">ftplib</a></tt></b></td>
<td class='synopsis'>FTP protocol client (requires sockets).</td></tr>
<tr><td><b><tt class='module'><a href="module-gopherlib.html" tppabs="http://www.python.org/doc/current/lib/module-gopherlib.html">gopherlib</a></tt></b></td>
<td class='synopsis'>Gopher protocol client (requires sockets).</td></tr>
<tr><td><b><tt class='module'><a href="module-poplib.html" tppabs="http://www.python.org/doc/current/lib/module-poplib.html">poplib</a></tt></b></td>
<td class='synopsis'>POP3 protocol client (requires sockets).</td></tr>
<tr><td><b><tt class='module'><a href="module-imaplib.html" tppabs="http://www.python.org/doc/current/lib/module-imaplib.html">imaplib</a></tt></b></td>
<td class='synopsis'>IMAP4 protocol client (requires sockets).</td></tr>
<tr><td><b><tt class='module'><a href="module-nntplib.html" tppabs="http://www.python.org/doc/current/lib/module-nntplib.html">nntplib</a></tt></b></td>
<td class='synopsis'>NNTP protocol client (requires sockets).</td></tr>
<tr><td><b><tt class='module'><a href="module-smtplib.html" tppabs="http://www.python.org/doc/current/lib/module-smtplib.html">smtplib</a></tt></b></td>
<td class='synopsis'>SMTP protocol client (requires sockets).</td></tr>
<tr><td><b><tt class='module'><a href="module-telnetlib.html" tppabs="http://www.python.org/doc/current/lib/module-telnetlib.html">telnetlib</a></tt></b></td>
<td class='synopsis'>Telnet client class.</td></tr>
<tr><td><b><tt class='module'><a href="module-urlparse.html" tppabs="http://www.python.org/doc/current/lib/module-urlparse.html">urlparse</a></tt></b></td>
<td class='synopsis'>Parse URLs into components.</td></tr>
<tr><td><b><tt class='module'><a href="module-SocketServer.html" tppabs="http://www.python.org/doc/current/lib/module-SocketServer.html">SocketServer</a></tt></b></td>
<td class='synopsis'>A framework for network servers.</td></tr>
<tr><td><b><tt class='module'><a href="module-BaseHTTPServer.html" tppabs="http://www.python.org/doc/current/lib/module-BaseHTTPServer.html">BaseHTTPServer</a></tt></b></td>
<td class='synopsis'>Basic HTTP server (base class for
<tt class="class">SimpleHTTPServer</tt> and <tt class="class">CGIHTTPServer</tt>).</td></tr>
<tr><td><b><tt class='module'><a href="module-SimpleHTTPServer.html" tppabs="http://www.python.org/doc/current/lib/module-SimpleHTTPServer.html">SimpleHTTPServer</a></tt></b></td>
<td class='synopsis'>This module provides a basic request handler for HTTP
servers.</td></tr>
<tr><td><b><tt class='module'><a href="module-CGIHTTPServer.html" tppabs="http://www.python.org/doc/current/lib/module-CGIHTTPServer.html">CGIHTTPServer</a></tt></b></td>
<td class='synopsis'>This module provides a request handler for HTTP servers
which can run CGI scripts.</td></tr>
<tr><td><b><tt class='module'><a href="module-Cookie.html" tppabs="http://www.python.org/doc/current/lib/module-Cookie.html">Cookie</a></tt></b></td>
<td class='synopsis'>Support for HTTP state management (cookies).</td></tr>
<tr><td><b><tt class='module'><a href="module-asyncore.html" tppabs="http://www.python.org/doc/current/lib/module-asyncore.html">asyncore</a></tt></b></td>
<td class='synopsis'>A base class for developing asynchronous socket
handling services.</td></tr>
</table>
<BR>
<DIV CLASS="navigation"><p><hr><table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A href="profile-HotProfile.html" tppabs="http://www.python.org/doc/current/lib/profile-HotProfile.html"><img src="previous.gif" tppabs="http://www.python.org/doc/current/icons/previous.gif" border="0" height="32"
alt="Previous Page" width="32"></A></td>
<td><A HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html"><img src="up.gif" tppabs="http://www.python.org/doc/current/icons/up.gif" border="0" height="32"
alt="Up One Level" width="32"></A></td>
<td><A href="module-webbrowser.html" tppabs="http://www.python.org/doc/current/lib/module-webbrowser.html"><img src="next.gif" tppabs="http://www.python.org/doc/current/icons/next.gif" border="0" height="32"
alt="Next Page" width="32"></A></td>
<td align="center" width="100%">Python Library Reference</td>
<td><A href="contents.html" tppabs="http://www.python.org/doc/current/lib/contents.html"><img src="contents.gif" tppabs="http://www.python.org/doc/current/icons/contents.gif" border="0" height="32"
alt="Contents" width="32"></A></td>
<td><a href="modindex.html" tppabs="http://www.python.org/doc/current/lib/modindex.html" title="Module Index"><img src="modules.gif" tppabs="http://www.python.org/doc/current/icons/modules.gif" border="0" height="32"
alt="Module Index" width="32"></a></td>
<td><A href="genindex.html" tppabs="http://www.python.org/doc/current/lib/genindex.html"><img src="index.gif" tppabs="http://www.python.org/doc/current/icons/index.gif" border="0" height="32"
alt="Index" width="32"></A></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" href="profile-HotProfile.html" tppabs="http://www.python.org/doc/current/lib/profile-HotProfile.html">10.8.2 HotProfile Class</A>
<b class="navlabel">Up:</b> <a class="sectref" HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html">Python Library Reference</A>
<b class="navlabel">Next:</b> <a class="sectref" href="module-webbrowser.html" tppabs="http://www.python.org/doc/current/lib/module-webbrowser.html">11.1 webbrowser </A>
</DIV>
<!--End of Navigation Panel-->
<ADDRESS>
<hr>See <i><a href="about.html" tppabs="http://www.python.org/doc/current/lib/about.html">About this document...</a></i> for information on suggesting changes.
</ADDRESS>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -