blob: 7b587d862ead7bc986bb3288f124edf799e48db2 [file] [log] [blame]
#!/usr/bin/python
import BaseHTTPServer
class HTTPHandlerOne(BaseHTTPServer.BaseHTTPRequestHandler):
def do_GET(self):
with open('./message.html', 'r') as msgfile:
message = msgfile.read()
self.wfile.write(message)
def run(server_class=BaseHTTPServer.HTTPServer,
handler_class=BaseHTTPServer.BaseHTTPRequestHandler):
server_address = ('192.168.0.1', 8000)
httpd = server_class(server_address, handler_class)
httpd.serve_forever()
run(handler_class=HTTPHandlerOne)