PUT is used by FB to update the comment because an existing resource is being updated, and that is what PUT does (updates a resource). PUT happens to be idempotent, in contrast to POST. 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 a... Use of PUT vs PATCH methods in REST API real life scenarios

Recommended for you

The expected method for updating an existing record is PUT. So your choice should be PUT. POST is generally used for inserting a new record with a brand new content like in the example below: ... So in your case you do not need any POST operation because PUT for upsert operation also covers that. When embedding JavaScript in an HTML document, where is the proper place to put the tags and included JavaScript? I seem to recall that you are not supposed to place these in the &lt... Where should I put tags in HTML markup? - Stack Overflow How do I test a RESTful PUT (or DELETE) method using cURL? rest - How to do a PUT request with cURL? - Stack Overflow If there are documented best practices, I have not found them yet. However, here are a few guidelines I use when determining where to put parameters in an url: Optional parameters tend to be easier to put in the query string. The Special lead-in Character that will put your folder at the end of the list without having to resort to using the "z" combo: U+E83A: Private Use. In fact, I believe any of the Private Use characters will work. ( ) Just copy and paste the character between the brackets.

rest - How to do a PUT request with cURL? - Stack Overflow If there are documented best practices, I have not found them yet. However, here are a few guidelines I use when determining where to put parameters in an url: Optional parameters tend to be easier to put in the query string. The Special lead-in Character that will put your folder at the end of the list without having to resort to using the "z" combo: U+E83A: Private Use. In fact, I believe any of the Private Use characters will work. ( ) Just copy and paste the character between the brackets. windows - What character to use to put an item at the end of an ... Can I use "Put" method in html form to send data from HTML Form to server? Yes you can, but keep in mind that it will not result in a PUT but a GET request. If you use an invalid value for the method attribute of the tag, the browser will use the default value get. HTML forms (up to HTML version 4 (, 5 Draft) and XHTML 1) only support GET and POST as HTTP request methods. A workaround ... How to put more than 1000 values into an Oracle IN clause [duplicate] Asked 17 years, 3 months ago Modified 5 years, 6 months ago Viewed 450k times How to put more than 1000 values into an Oracle IN clause Is it possible in VS Code to put the terminal on the right?

How to put more than 1000 values into an Oracle IN clause [duplicate] Asked 17 years, 3 months ago Modified 5 years, 6 months ago Viewed 450k times How to put more than 1000 values into an Oracle IN clause Is it possible in VS Code to put the terminal on the right?

You may also like