[issue17307] HTTP PUT request Example

2013-03-13 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for the review, Karl. Made the doc changes in all codelines. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue17307] HTTP PUT request Example

2013-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4edde40afee6 by Senthil Kumaran in branch '2.7': #17307 - Example of HTTP PUT Request using httplib http://hg.python.org/cpython/rev/4edde40afee6 New changeset d4ab6556ff97 by Senthil Kumaran in branch '3.2': #17307 - Example of HTTP PUT Request usi

[issue17307] HTTP PUT request Example

2013-03-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: Karl, I am getting back to this. Thanks for your review comments on the patch. 1. Agree with your explanation on HTTP PUT. I shall modify the comment. 2. I think, it is okay to remove the HTTP PUT server example. I wrote it for test purposes and I think, it is

[issue17307] HTTP PUT request Example

2013-02-28 Thread karl
karl added the comment: Sentil: About the PUT/POST, I would say: A POST and PUT methods differs only by the intent of the enclosed representation. In the case of a POST, the target resource (URI) on the server decides what is the meaning of the enclosed representation in

[issue17307] HTTP PUT request Example

2013-02-27 Thread Senthil Kumaran
Senthil Kumaran added the comment: Ezio. yes in 3.3 onwards it should be done in urllib.request. I was having 2.7 docs in my mind, but I ended up writing for latest with the intention to backport. I have updated the patch to include both ways, while backporting to 2.7 and 3.2, plan to include

[issue17307] HTTP PUT request Example

2013-02-27 Thread Ezio Melotti
Ezio Melotti added the comment: Shouldn't that be done with urllib? -- components: +Documentation type: -> enhancement ___ Python tracker ___ ___

[issue17307] HTTP PUT request Example

2013-02-27 Thread Senthil Kumaran
New submission from Senthil Kumaran: I think an explicit HTTP put request example in the docs may help. Previously, I thought the POST example was enough as PUT is very similar, but given the folks are looking for it, an example of how to do a PUT request using httplib may be helpful. Here is