[mod_python] Vampire/mod_python determining type of argument - GET/POST

Jim Gallacher jpg at jgassociates.ca
Tue Nov 29 15:41:41 EST 2005

Jim Gallacher wrote:
> Deron Meranda wrote:
>> On 11/29/05, Brandon N <woodsman at gmail.com> wrote:
>>> I didn't realize it had to be either get or post, but I suppose that 
>>> makes
>>> sense.
>> It can be other things too.  In fact I'm using mod_python to process
>> PUT requests as well.
> However, most browsers IIRC will only submit a form using POST or GET. 
> If you use <form method="PUT">, the browser will still use a POST. Same 
> goes for urllib2. It would be nice if more clients supported PUT, but 
> there you go.
> As Deron says there is no problem on the mod_python server side.

I take that back. If you are using FieldStorage to get the form data 
then there is a problem with PUT. FieldStorage will only process POST 
requests. That is something I'd like to see changed.


More information about the Mod_python mailing list