localCGIServer.py
The small Python program supplied with the course examples that runs a local web server able to execute CGI scripts, reached at http://localhost:8080.
In more detail
Start it from inside the www examples folder and leave its window open while you test pages in your browser. Its window shows each request and any error messages from your scripts.
Related terms
- web server — A program that listens for web requests on a port and sends back responses.
- CGI — The Common Gateway Interface, an old standard for a web server to run a program for each request and send the program's printed output back as the page.
- localhost — The name a machine uses for itself; traffic sent there never leaves that machine.
- port — A number from 1 to 65535 that picks out one service on a machine, such as 22 for SSH or 80 for plain web traffic.
Taught in
- How A Web Page Reaches You — Hands-on Python: Complete Video Course & Book
- CGI: Dynamic Web Pages — Hands-on Python: Complete Video Course & Book
- Windows And Mac Specifics — Hands-on Python: Complete Video Course & Book