BaseHTTPServer and do_POST method

2008-02-27 Thread rocksportrocker
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 =

Re: BaseHTTPServer and do_POST method

2008-02-27 Thread rocksportrocker
On Feb 27, 1:28 pm, rocksportrocker [EMAIL PROTECTED] 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):

BaseHTTPServer and do_POST method

2008-02-27 Thread rocksportrocker
Hi, I am trying to implement a local server for storing and retrieving numerical data. So I use BaseHTTPServer as follows: - from BaseHTTPServer import * class Handler(BaseHTTPRequestHandler): def do_POST(self):

Re: BaseHTTPServer and do_POST method

2008-02-27 Thread 7stud
On Feb 27, 5:33 am, rocksportrocker [EMAIL PROTECTED] wrote: Hi, I am trying to implement a local server for storing and retrieving numerical data. So I use BaseHTTPServer as follows: -     from BaseHTTPServer import *     class

Re: BaseHTTPServer and do_POST method

2008-02-27 Thread rocksportrocker
If I ommit send_response() in do_POST() I get no errormessage. That is an acceptable solution for me. Greetings, Uwe -- http://mail.python.org/mailman/listinfo/python-list

Re: BaseHTTPServer and do_POST method

2008-02-27 Thread rocksportrocker
On Feb 27, 2:50 pm, 7stud [EMAIL PROTECTED] wrote: ... I don't get that error. On the server, I get the output: POST localhost - - [27/Feb/2008 06:49:13] POST / HTTP/1.1 200 - and on the client I get: None In my case the server says: Traceback (most recent call last): File

Re: BaseHTTPServer and do_POST method

2008-02-27 Thread Gabriel Genellina
En Wed, 27 Feb 2008 10:33:35 -0200, rocksportrocker [EMAIL PROTECTED] escribi�: Hi, I am trying to implement a local server for storing and retrieving numerical data. So I use BaseHTTPServer as follows: - from BaseHTTPServer