same computer though not meant for enterprise-level workthis turns out to be great way to test cgi scripts--you can develop them on the same machine without having to transfer code back to remote server machine after each change simply run this script from the directory that contains both your html files and cgi-bin subdirectory for scripts and then use here is the trace output the web server script produces in windows console window that is running on the same machine as the web browser and launched from the directory where the html files reside\pp \previewpython webserver py mark-vaio [ /jan/ : : "get /cgi html http/ mark-vaio [ /jan/ : : "post /cgi-bin/cgi py http/ mark-vaio [ /jan/ : : commandc:\python \python exe - :\users \mark\stuff\books\ \pp \dev\examples\pp \preview\cgi-bin\cgi py "mark-vaio [ /jan/ : : cgi script exited ok mark-vaio [ /jan/ : : "get /cgi-bin/cgi py?user=sue+smith http / mark-vaio [ /jan/ : : commandc:\python \python exe - :\users \mark\stuff\books\ \pp \dev\examples\pp \preview\cgi-bin\cgi py mark-vaio [ /jan/ : : cgi script exited ok one pragmatic note hereyou may need administrator privileges in order to run server on the script' default port on some platformseither find out how to run this way or try running on different port to run this server on different portchange the port number in the script and name it explicitly in the url ( we'll learn more about this convention later in this book and to run this server on remote computerupload the html files and cgi scripts subdirectory to the remote computerlaunch the server script on that machineand replace "localhostin the urls with the domain name or ip address of your server machine ( interaction will be as shown herebut inputs and replies will be automatically shipped across network connectionsnot routed between programs running on the same computer to delve further into the server classes our web server script employssee their implementation in python' standard library ( :\python \lib for python )one of the major advantages of open source system like python is that we can always look under the hood this way in we'll expand example - to allow the directory name and port numbers to be passed in on the command line using query strings and urllib in the basic cgi example shown earlierwe ran the python script by filling out and submitting form that contained the name of the script reallyserver-side cgi scripts can be invoked in variety of ways--either by submitting an input form as shown so step adding web interface