﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
17360	Documenting differences between Client.post et Client.put	thibaultj	nobody	"The [https://docs.djangoproject.com/en/dev/topics/testing/ testing documentation] asserts that « Client.put() […] Acts just like Client.post() except with the PUT request method. ». However, there's a subtle difference in the manner django handles both methods.

When a requests comes with a PUT method, django won't process the `request.POST` variable, even if the content is url encoded.

This issue was [https://code.djangoproject.com/ticket/12635 already reported], but the decision was taken to leave things as this ([http://groups.google.com/group/django-developers/browse_thread/thread/86838c8ac035d488 That was confirmed after this discussion]).

However, I think there is a gap in documentation, since a user testing a RESTful web service will meet a WTF!? effect when using a PUT request.

So I tried to make the documentation clearer, by explaining this difference, and explaining the way to overcome the issue.

[https://github.com/django/django/pull/87 There is a pull request], but the patch is attached."	Cleanup/optimization	closed	Documentation	dev	Normal	fixed	rest, put, testing	thibaultj	Accepted	1	0	0	1	1	0
