[Tutor] Writing serialized objects from BaseHTTPServer

Arun Kumar PG arunkumarpg at gmail.com
Tue Oct 24 18:59:27 CEST 2006

any replies for the below ?

On 10/19/06, Arun Kumar PG <arunkumarpg at gmail.com> wrote:
> Hi Guys,
> I wrote a simple server using sockets ,the traditional whille True:
> scoket.accept() approach. This server reads some pickled parameters sent
> by the client using the cPickle module -> do some processing -> and finally
> writes a list of tuples, objects using cPickle back to the client output
> stream ( cPickle.dump).
> Now I want to replace this server with an HTTP server. Python's
> BaseHTTPServer basically. I was wondering when using BaseHTTPServer if I
> want to read/write a serialized object to meet the above behavior how could
> I achive this using HTTP server ? We need a content-type to specify before
> writing back to the client -- whats the content-type for serialised objects
> which I want to write back to the client using cPickle ?
> Thanks.
> Arun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061024/43fb8d0b/attachment.htm 

More information about the Tutor mailing list