[mod_python] 411 Length Required for POST

Nick nick at dd.revealed.net
Fri Mar 3 14:59:31 EST 2006


Deron Meranda wrote:
> It's also very unusual to use application/x-www-form-urlencoded
> with POST's, but I guess you could.

That's the default, unless you're uploading files and have explicitly
specified enctype="multipart/form-data".  Of course, with XMLHttpRequest you
have to manually add the content-type, and application/x-www-form-urlencoded
is a reasonable value.  If you were doing xmlrpc, you might pick text/xml
instead.

Nick


More information about the Mod_python mailing list