Hi.

I am trying to set up a simple HTTP-server but I have problems reading data that is beeing POSTed.

class httpServer(BaseHTTPServer.BaseHTTPRequestHandler):
   def do_POST(self):
       input = self.rfile.read()

The self.rfile.read() will hang on the
data = self._sock.recv(recv_size)
line in the read() function in socket.py.

Is there another way to read the data?

Thanks,
Håkan Persson

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to