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. Since PUT requests include the entire entity, if you issue the same request repeatedly, it should always have the same outcome (the data you sent is now the entire data of the entity).

Context Explanation

Therefore PUT is idempotent. Using PUT wrong What happens if you use the above PATCH data in a PUT request? Use of PUT vs PATCH methods in REST API real life scenarios Difference between PUT, POST, GET, DELETE and PATCH in HTTP Verbs: The most commonly used HTTP verbs POST, GET, PUT, DELETE are similar to CRUD (Create, Read, Update and Delete) operations in database. We specify these HTTP verbs in the capital case.

Insight Material

Below is the comparison between them. Create - POST Read - GET Update - PUT Delete - DELETE PATCH: Submits a partial modification to a resource ... When embedding JavaScript in an HTML document, where is the proper place to put the <script> tags and included JavaScript? I seem to recall that you are not supposed to place these in the &lt... Where should I put <script> tags in HTML markup?

Final Conclusion

- Stack Overflow 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 <form> 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 ... I have a process that is already running for a long time and don't want to end it.

How do I put it under nohup (that is, how do I cause it to continue running even if I close the terminal?)