Skip to content

Instantly share code, notes, and snippets.

Created February 16, 2014 14:52
Show Gist options
  • Save anonymous/9035456 to your computer and use it in GitHub Desktop.
Save anonymous/9035456 to your computer and use it in GitHub Desktop.
This is well known code for simple web-service using Python.
#############
# 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)
#############
@jskDr
Copy link

jskDr commented Feb 16, 2014

I uploaded this well-known codes for web-service in Python.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment