On Thu, Jun 25, 2009 at 7:18 AM, Roman Vorushin <roman.vorus...@gmail.com>wrote:

>
> Hello!
>
> I started to write tests for my RESTful web service, written in
> Django. I use django.test.Client for making HTTP requests. GET and
> POST methods works all right, but I didn't find any options to send
> non-MULTIPART_CONTENT data in PUT request.
>
> My code is:
>
> [snip]
>
>
> If I change line
>
> 'QUERY_STRING':   urlencode(data, doseq=True) or parsed[4],
>
> to
>
> 'QUERY_STRING':  parsed[4],
>
> everythings works all right in my case. Client.post() method uses the
> same technology (no urlencode, only parsed[4]).
>
> Is this a bug? Should I send bug report to some special place?
>

Looks like it might be.  post() and put() are documented as behaving the
same other than the request method, yet they have some differences in their
internals.  Please open a ticket here:

http://code.djangoproject.com/simpleticket

Karen

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to