How to support Content-Type: multipart/mixed

10 views
Skip to first unread message

Wan Li

unread,
Dec 25, 2009, 1:29:07 AM12/25/09
to cherryp...@googlegroups.com
Hi Gurus,

I'm posting the "multipart/mixed" type msg to django server,but seems cherrypy can't handle it well.
Any way to support it? Code snippets are welcome.
PS: I tried to use following lines to get raw request body:

def before_request_body():
    cherrypy.request.processRequestBody = False

cherrypy.tools.dont_process_body = cherrypy.Tool('before_request_body', before_request_body)

and  turn it on in conf file and also the handler via decorator, both won't work.


Thanks!



--
>: ~

Wan Li

unread,
Dec 25, 2009, 8:25:39 AM12/25/09
to cherryp...@googlegroups.com
Seems like multipart/mixed content in multipart/form-data is also NOT supported.
I can only get headers, body is always NONE and request.rfile.read() leads to a infinity loop.
--
>: ~
Reply all
Reply to author
Forward
0 new messages