Skip to content

Commit a71b921

Browse files
committed
Add simple hello_world example.
1 parent 6eaf6f3 commit a71b921

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

cgi-bin/hello_world.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env python
2+
3+
print("Content-Type: text/html")
4+
print("")
5+
6+
print("Hello, world!")
7+

index.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<title>Internet Programming in Python: CGI and WSGI</title>
4+
<title>Internet Programming in Python: CGI</title>
55
</head>
66
<body>
77
<h1>Internet Programming in Python</h1>
8-
<h2>CGI and WSGI</h2>
9-
<h3>CGI Examples</h3>
8+
<h2>CGI Examples</h2>
109
<ol>
10+
<li><a href="cgi-bin/hello_world.py">Hello World</a></li>
1111
<li><a href="cgi-bin/cgi_1.py">CGI Test 1</a></li>
1212
<li><a href="cgi-bin/cgi_2.py">Exercise One</a></li>
1313
<li><a href="cgi-bin/cgi_sums.py?operand=23&operand=55&operand=35">CGI Sum Server</a></li>
1414
</ol>
15-
<h3>WSGI Examples</h3>
1615
</body>
1716
</html>

0 commit comments

Comments
 (0)