On Fri, Jul 29, 2011 at 9:54 AM, Exia <arios...@gmail.com> wrote: > hi, I'd like to send an xml to a django web server. > I've written a python program like this: > .... > req = urllib2.Request('http://127.0.0.1/abc/', strxml) > f = urllib2.urlopen(req) > > but I don't know how to deal with it in views.py of django in the > server... > what should I do in the following function: > def hello(request): > ??? >
When you post data to Django, the raw data posted is available in request.raw_post_data https://docs.djangoproject.com/en/1.3/ref/request-response/#django.http.HttpRequest.raw_post_data Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.