[Twisted-web] XForms HTTP POST with twisted web ?

Tommi Virtanen tv at twistedmatrix.com
Tue Jan 3 14:53:55 MST 2006


Alain Fréhel wrote:
> I have an application using XForms and I would like to know if it is
> possible to receive (and process) the XML instance sent via XForms' HTTP
> POST submission (that is having method="post" in the <submission>
> element).
> 
> Until now the only way I manage to receive any data is by using
> method="get" or method="urlencoded-post", which is not what I want. I
> need the original XML instance, not a dictionary of elements/values.

What's the content-type for XForms method="post"?
Twisted.web currently parses multipart/form-data and
application/x-www-form-urlencoded POSTs, everything
else should be left in request.content.



More information about the Twisted-web mailing list