On Apr 13, 2006, at 4:59 AM, Robert wrote: > OK, I've gone through pains and figured it out from the sources. The > POST's body, assuming content-type is not one of > application/x-www-form-urlencoded, multipart/* is in the > request.fieldstorage.file and has to be read(). And the handling of > wsgi.input is *weird* through the pylons/myghty stack.
Yes, that's partly because wsgi.input is rather sensitive as once its consumed its not there anymore. Since Myghty calls the controllers, it actually consumes it and uses FieldStorage classes. You can still get to the raw data, as the RPC controller does with read() as you noted. I believe the special source you're looking for which has the full raw POST body is: m.request_args['_file'].read() This area in particular will be much cleaner in 0.9 since you'll have access to wsgi.input without it being parsed to form a POST dict. HTH, Ben --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
