BaseHTTPServer and do_POST method

rocksportrocker rocksportrocker at googlemail.com
Wed Feb 27 07:34:44 EST 2008


On Feb 27, 1:28 pm, rocksportrocker <rocksportroc... at googlemail.com>
wrote:
> 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)

Please ignore this post, I accidentally hit the "Send" button before
finishing.

Greetings, Uwe



More information about the Python-list mailing list