📄 173.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Robots" content="INDEX,NOFOLLOW">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<TITLE>Safari | Python Developer's Handbook -> Web Development</TITLE>
<LINK REL="stylesheet" HREF="oreillyi/oreillyN.css">
</HEAD>
<BODY bgcolor="white" text="black" link="#990000" vlink="#990000" alink="#990000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" cellpadding=5 cellspacing=0 border=0 class="navtopbg"><tr><td><font size="1"><p class="navtitle"><a href="8.html" class="navtitle">Web Development</a> > <a href="0672319942.html" class="navtitle">Python Developer's Handbook</a> > <a href="171.html" class="navtitle">11. Web Development</a> > <span class="nonavtitle">Web Development</span></p></font></td><td align="right" valign="top" nowrap><font size="1"><a href="main.asp?list" class="safnavoff">See All Titles</a></font></td></tr></table>
<TABLE width=100% bgcolor=white border=0 cellspacing=0 cellpadding=5><TR><TD>
<TABLE border=0 width="100%" cellspacing=0 cellpadding=0><TR><td align=left width="15%" class="headingsubbarbg"><a href="172.html" title="11. Web Development"><font size="1">< BACK</font></a></td><td align=center width="70%" class="headingsubbarbg"><font size="1"><a href="popanote.asp?pubui=oreilly&bookname=0672319942&snode=173" target="_blank" title="Make a public or private annnotation">Make Note</a> | <a href="173.html" title="Use a Safari bookmark to remember this section">Bookmark</a></font></td><td align=right width="15%" class="headingsubbarbg"><a href="174.html" title="Configuring Web Servers for Python/CGI Scripts"><font size="1">CONTINUE ></font></a></td></TR></TABLE>
<a href="5%2F31%2F2002+4%3A43%3A17+PM.html" TABINDEX="-1"><img src=images/spacer.gif border=0 width=1 height=1></a><font color=white size=1>152015024128143245168232148039199167010047123209178152124239215162148047091218246049222234</font><a href="read5.asp?bookname=0672319942&snode=173&now=5%2F31%2F2002+4%3A43%3A17+PM" TABINDEX="-1"><img src=images/spacer.gif border=0 width=1 height=1></a><br>
<FONT><h3>Web Development</h3>
<p>This chapter exposes the reality between Python and the Internet by introducing some complete Web applications that have emerged from the Python community.</p>
<P>No doubt the most popular application area at this time is the Internet. Consequently, Python is acquiring a strong presence on the Web because its library of modules that interface to the main Internet protocols reach full maturity.</P>
<P>Python is a dynamic language absolutely useful for the Internet, mostly because it easily allows the establishment of interfaces with external systems.<A name="idx1073746141"></A><A NAme="idx1073746142"></a><a NAME="idx1073746143"></a></p>
<p>Nowadays, some of the most important applications in the Internet are based on the <a name="idx1073746144"></a><a name="idx1073746145"></a>HTTP protocol. Python's support to HTTP, which is the basic communication protocol underlying the Web, allows it to implement HTTP Servers (Web Servers) and clients (Web browsers). Python has been successfully used to implement an HTTP client called <a name="idx1073746146"></A><a nAme="idx1073746147"></a><A name="idx1073746148"></A><a naME="idx1073746149"></A><A name="idx1073746150"></A>Grail, which is a Web browser full of features. On the other hand, Python has many options for HTTP Servers, also known as Web Servers. Python's standard library of modules comes with some basic HTTP Server implementations, such as <TT Class="monofont">BaseHTTPServer</TT> and <TT clasS="monofont">SimpleHTTPServer.</TT> The advantage of using Python as a Web Server is that you have total control about what is going on in your application.</P>
<p>Besides the HTTP Servers that are part of Python's distribution, a number of other third-party Internet publishing tools are available for Python. Most of them are free for both commercial and noncommercial use, such as Medusa and Zope.</p>
<p>This chapter also points you to the most used Python scripts and technologies used for Web development. For more information, check out the Web Programming Topic Guide site:</p>
<p><a target="_blank" href="http://www.python.org/topics/web/">http://www.python.org/topics/web/</a></p>
<p>This area in the Python's Web site covers Web-related programming with Python. It possesses links to several distinct Web topics, such as HTML, HTTP, Zope, and so on.<a NamE="idx1073746151"></a><a nAme="idx1073746152"></a><a Name="idx1073746153"></A></P>
</FOnt>
<P><TABLE width="100%" border=0><TR valign="top"><TD><font size=1 color="#C0C0C0"><br></font></TD><TD align=right><font size=1 color="#C0C0C0">Last updated on 1/30/2002<br>Python Developer's Handbook, © 2002 Sams Publishing</font></TD></TR></TABLE></P>
<TABLE border=0 width="100%" cellspacing=0 cellpadding=0><TR><td align=left width="15%" class="headingsubbarbg"><a href="172.html" title="11. Web Development"><font size="1">< BACK</font></a></td><td align=center width="70%" class="headingsubbarbg"><font size="1"><a href="popanote.asp?pubui=oreilly&bookname=0672319942&snode=173" target="_blank" title="Make a public or private annnotation">Make Note</a> | <a href="173.html" title="Use a Safari bookmark to remember this section">Bookmark</a></font></td><td align=right width="15%" class="headingsubbarbg"><a href="174.html" title="Configuring Web Servers for Python/CGI Scripts"><font size="1">CONTINUE ></font></a></td></TR></TABLE>
</TD></TR></TABLE>
<br><TABLE width=100% bgcolor=white border=0 cellspacing=0 cellpadding=5><TR><TD><H4 class=Title>Index terms contained in this section</H4>
<font size=2>
applications<BR>
<a href="#idx1073746148">Grail</a><BR>
browsers<BR>
<a href="#idx1073746147">Grail</a><BR>
development<BR>
<a href="#idx1073746143">Web</a> <a href="#idx1073746153">2nd</a><BR>
<a href="#idx1073746146">Grail</a><BR>
<a href="#idx1073746144">HTTP (Hypertext Transfer Protocol</a><BR>
<a href="#idx1073746145">Hypertext Transfer Protocol (HTTP)</a><BR>
Internet<BR>
<a href="#idx1073746142">development for</a> <a href="#idx1073746152">2nd</a><BR>
programs<BR>
<a href="#idx1073746149">Grail</a><BR>
software<BR>
<a href="#idx1073746150">Grail</a><BR>
World Wide Web<BR>
<a href="#idx1073746141">development for</a> <a href="#idx1073746151">2nd</a><BR>
<BR>
</font></TD></TR></TABLE>
<!--EndOfBrowse-->
</TD></TR></TABLE>
<table width=100% border=0 cellspacing=0 cellpadding=0 bgcolor=#990000><tr><td><p align=center><font size=1 face="verdana,arial,helvetica" color=white>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -