Created
February 16, 2014 14:52
-
-
Save anonymous/9035456 to your computer and use it in GitHub Desktop.
This is well known code for simple web-service using Python.
This file contains hidden or 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
############# | |
# mywebserver.py | |
import BaseHTTPServer, SimpleHTTPServer, CGIHTTPServer | |
class myRequestHandler(CGIHTTPServer.CGIHTTPRequestHandler): | |
def is_executable(self, path): | |
return self.is_python(path) | |
if __name__ == '__main__': | |
SimpleHTTPServer.test(myRequestHandler, BaseHTTPServer.HTTPServer) | |
############# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I uploaded this well-known codes for web-service in Python.