Created
September 5, 2012 10:16
-
-
Save ym405nm/3634544 to your computer and use it in GitHub Desktop.
python server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
print "test" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cgi | |
import BaseHTTPServer,CGIHTTPServer | |
BaseHTTPServer.HTTPServer(( '127.0.0.1', 80 ), CGIHTTPServer.CGIHTTPRequestHandler ).serve_forever() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment