#!/usr/bin/python from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer class Handler(BaseHTTPRequestHandler): def do_GET(self): #print self.headers print self.headers.getheader('Content-Length') self.wfile.write('HELLO!!!') server = HTTPServer(('', 58621), Handler) server.serve_forever()
-EOF-
No comments:
Post a Comment