Qinsi Zhu wrote:
> On 8/27/07, Ian Bicking <[EMAIL PROTECTED]> wrote:
>> If you upgrade to the newest Paste (1.4) there are put and delete
>> methods for testing.
>>
> 
> Hi Ian, that's it! Thank you for your prompt reply.
> 
> But now I have another problem. It seems that the params dict of a PUT
> method is not available in request.params. How could that be possible?
> How did the simulated way (ie. hidden _method field) with the browser
> work? I'm not familiar with the WSGI thing, so that seems magic to me.
> What should I do now?

request.params is for HTML form submissions.  To get the full request 
body, use request.body, specifically 
request.body.read(int(request.environ['CONTENT_LENGTH'])).


-- 
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
             : Write code, do good : http://topp.openplans.org/careers

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to