[Python编程(第4版)].(Programming.Python.4th.Edition).Mark.Lutz.文字版
watch for a Python 3.X–compatible version of more robust and complete open source alternatives, such as the html2text.py same-na ...
large inboxes can be convenient. As is, this can be performed manually by running a Save to store fetched mails in a text file a ...
done so because I have a personal bias against being surprised by software, but your mileage may vary. Reply and Forward buttons ...
be extended to display both email messages and news articles. Classifying such a mutation as clever generalization or diabolical ...
Unicode limitations here stem from the limitations of the email package in Python 3.1 upon which PyMailGUI heavily depends. It m ...
email package, as well as the tkinter GUI toolkit. Both are fully sufficient for the utility we’ve implemented here, but they mi ...
CHAPTER 15 Server-Side Scripting “Oh, What a Tangled Web We Weave” This chapter is the fourth part of our look at Python Interne ...
power, and may even not conform to current HTML standards. In fact, much of the material added in later editions of this book re ...
from which CGI scripts take their name. CGI is an application protocol that web servers use to transfer input data and results b ...
socket. On the client, the browser reads the HTML and uses it to construct the next page you see. But if the URL requested by th ...
Input data sent from the browser to the server shows up as a stream of bytes in the stdin input stream, along with shell enviro ...
framework itself. With HTMLgen and similar packages, for instance, it’s possible to deal in Python objects, not HTML syntax, tho ...
when I wrote this chapter in mid-2010, though it’s possible to find commercial ISPs today that do. Naturally, this may change ov ...
""" import os, sys from http.server import HTTPServer, CGIHTTPRequestHandler webdir = '.' # where your HTML files and cgi-bin sc ...
scripts locally with server name “localhost” before deploying them on a real remote server. If you wish to install and run the e ...
It’s possible to open some of the examples by clicking on their HTML file directly in your system’s file explorer GUI. However, ...
Climbing the CGI Learning Curve Now that we’ve looked at setup issues, it’s time to get into concrete programming details. This ...
Figure 15-2. A simple web page from an HTML file To truly understand how this little file does its work, you need to know someth ...
Internet addresses (URLs) Once you write an HTML file, you need to put it somewhere a web browser can ref- erence it. If you are ...
80, so this is the default if the port is omitted. See Chapter 12 if you need a refresher on machine names and ports. File path: ...
«
54
55
56
57
58
59
60
61
62
63
»
Free download pdf