On Wed, 2006-06-28 at 14:15 -0500, Jacob Kaplan-Moss wrote:
> On Jun 28, 2006, at 11:45 AM, Malcolm Tredinnick wrote:
> > For things like applications/atomserv+xml and related ones (basically,
> > everything else), data should be left unprocessed by the Django  
> > layers,
> > I would have thought. For example, an Atom publishing request contains
> > XML data that can't be treated like a form. And the application needs
> > access to the raw data to process it.
> 
> Am I missing something or isn't ``request.raw_post_data`` what you  
> need? AFAIK, ``request.POST`` and friends are lazy-loading, and you  
> can just access ``request.raw_post_data`` to get the, um, raw post data.
> 
> (See http://www.djangoproject.com/documentation/request_response/ 
> #attributes).
> 
> Is that what you need, or am I being dense?

One of us is being dense, but it isn't you. :-(

All this looks much easier after a bit of sleep. Not sure what I was
doing last night. Thanks for pointing out the obvious: raw_data will do
what I want and all the HTTP headers are supplied correctly. So there's
nothing much missing. Just my brains.

Malcolm



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" 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/django-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to