BaseHTTPServer and do_POST method

rocksportrocker rocksportrocker at googlemail.com
Wed Feb 27 09:38:31 EST 2008


On Feb 27, 2:50 pm, 7stud <bbxx789_0... at yahoo.com> 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 "c:\Python25\lib\SocketServer.py", line 222, in handle_request
    self.process_request(request, client_address)
  File "c:\Python25\lib\SocketServer.py", line 241, in process_request
    self.finish_request(request, client_address)
  File "c:\Python25\lib\SocketServer.py", line 254, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "c:\Python25\lib\SocketServer.py", line 522, in __init__
    self.handle()
  File "c:\Python25\lib\BaseHTTPServer.py", line 316, in handle
    self.handle_one_request()
  File "c:\Python25\lib\BaseHTTPServer.py", line 310, in
handle_one_request
    method()
  File "dataserver.py", line 11, in do_POST
    self.send_response(200)
  File "c:\Python25\lib\BaseHTTPServer.py", line 370, in send_response
    self.send_header('Server', self.version_string())
  File "c:\Python25\lib\BaseHTTPServer.py", line 376, in send_header
    self.wfile.write("%s: %s\r\n" % (keyword, value))
  File "c:\Python25\lib\socket.py", line 262, in write
    self.flush()
  File "c:\Python25\lib\socket.py", line 249, in flush
    self._sock.sendall(buffer)
error: (10053, 'Software caused connection abort')
---

Greetings, Uwe







More information about the Python-list mailing list