[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

BaseHTTPServer and do_POST method

Uwe Schmitt

2/27/2008 12:29:00 PM

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)
1 Answer

Uwe Schmitt

2/27/2008 12:35:00 PM

0

On Feb 27, 1:28 pm, rocksportrocker <rocksportroc...@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