Is there any way to do HTTP PUT in python
I need to upload some data to a server using HTTP PUT in python. From my brief reading of the urllib2 docs, it only does HTTP POST. Is there any way to do an HTTP PUT in python? 14 Answers 14
I need to upload some data to a server using HTTP PUT in python. From my brief reading of the urllib2 docs, it only does HTTP POST. Is there any way to do an HTTP PUT in python? 14 Answers 14
I am using a PUT request in my Rails application. Now, a new HTTP verb, PATCH has been implemented by browsers. So, I want to know what the main difference between PATCH and PUT requests are, and when we should use one or the other. 10 Answers 10
I was wondering what people’s opinions are of a RESTful PUT operation that returns nothing (null) in the response body. 12 s 12 The HTTP specification (RFC 2616) has a number of recommendations that are applicable. Here is my interpretation: HTTP status code 200 OK for a successful PUT of an update to an existing … Read more
GET:$.get(..) POST:$.post().. What about PUT/DELETE? 13 s 13 You could use the ajax method: $.ajax({ url: ‘/script.cgi’, type: ‘DELETE’, success: function(result) { // Do something with the result } });
They both seem to be sending data to the server inside the body, so what makes them different? 19 s 19 HTTP PUT: PUT puts a file or resource at a specific URI, and exactly at that URI. If there’s already a file or resource at that URI, PUT replaces that file or resource. If … Read more
First of all, some definitions: PUT is defined in Section 9.6 RFC 2616: The PUT method requests that the enclosed entity be stored under the supplied Request-URI. If the Request-URI refers to an already existing resource, the enclosed entity SHOULD be considered as a modified version of the one residing on the origin server. If … Read more
According to RFC 2616, § 9.5, POST is used to create a resource: The POST method is used to request that the origin server accept the entity enclosed in the request as a new subordinate of the resource identified by the Request-URI in the Request-Line. According to RFC 2616, § 9.6, PUT is used to … Read more