BaseHTTPServer and do_POST method

rocksportrocker rocksportrocker at googlemail.com
Wed Feb 27 07:28:53 EST 2008


Hi,

I am trying to implement a local server for storing and retrieving
numerical data.
So I used BaseHTTPServer as follows:

from BaseHTTPServer import *

class Handler(BaseHTTPRequestHandler):

    def do_POST(self):

        print "POST"
        self.send_response(200)


httpd = HTTPServer(("",8000), Handler)



More information about the Python-list mailing list