Standalone CGI Server - Question for Group
ingo
ingoogni at CUT.THIS.OUT.home.nl
Fri Mar 29 08:10:50 EST 2002
More information about the Python-list mailing list
Fri Mar 29 08:10:50 EST 2002
- Previous message (by thread): Standalone CGI Server - Question for Group
- Next message (by thread): Standalone CGI Server - Question for Group
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
in news:67abb823.0203290500.3a3a7da1 at posting.google.com Sloth wrote: > On the other hand, less is more in > this scenario and, frankly, now I'm just being stubborn and trying to > get Python to act as its own CGI server. ---%<------%<--- from BaseHTTPServer import HTTPServer from CGIHTTPServer import CGIHTTPRequestHandler import os port = 80 serv = HTTPServer(('', port), CGIHTTPRequestHandler) print "Running Web Server at port: ", port serv.serve_forever() ---%<------%<--- Then point your browser to http:\\localhost\somehtmlfile.html Ingo
- Previous message (by thread): Standalone CGI Server - Question for Group
- Next message (by thread): Standalone CGI Server - Question for Group
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list