On 27-Aug-2010, at 3:15 AM, Robert Kern wrote: > On 8/26/10 4:17 PM, Navkirat Singh wrote: > >> #-------------HERE IS WHERE I RECEIVE THE DATA >> while True: >> buff = socket.recv(8192) >> byteStr +=buff >> if not buff: break > > Also, you probably shouldn't bother writing an HTTP server using raw sockets. > Use HTTPServer instead: > > http://docs.python.org/py3k/library/http.server.html > > or better, wsgiref: > > http://docs.python.org/py3k/library/wsgiref.html > > -- > Robert Kern > > "I have come to believe that the whole world is an enigma, a harmless enigma > that is made terrible by our own mad attempt to interpret it as though it had > an underlying truth." > -- Umberto Eco > > -- > http://mail.python.org/mailman/listinfo/python-list
Thanks a lot guys, you all have been a lot of help !! -- http://mail.python.org/mailman/listinfo/python-list