Page 276 -
P. 276
test drive
Test Drive, continued
With your web server running, let’s load up Coach Kelly’s home page and get things going. You’ve
started your web server running on port 8080 on your computer, so you need to use the following
web address in your web browser: http://localhost:8080.
The coach’s home page
appears in your browser.
It’s called “index.html”
and it is included in the
“webapp.zip” download.
…and your web server
springs into life, logging
(to the screen) any and
all web requests that it
processes.
File Edit Window Help DisplayingHomePage
$ python3 simple_httpd.py
The “timing Starting simple_httpd on port: 8080
data” hyperlink is localhost - - [12/Sep/2010 14:30:03] "GET / HTTP/1.1" 200 -
waiting for you localhost - - [12/Sep/2010 14:30:03] "GET /coach.css HTTP/1.1" 200 -
localhost - - [12/Sep/2010 14:30:03] "GET /images/coach-head.jpg HTTP/1.1" 200 -
to click it. localhost - - [12/Sep/2010 14:30:03] "GET /favicon.ico HTTP/1.1" 200 -
240 Chapter 7