What's the purpose of HTTP PUT?
This question already has an answer here:
For RESTful APIs POST has a specific meaning (create a resource) while PUT has a different one (update an existing resource):
However, if there's really "script.php" whoever developed it was not very thorough when creating his API. "script.php" is pretty much not RESTful at all... Usually the URL structure of a proper RESTful API looks eg like this:
上一篇: servlet http post和put方法之间的区别?
下一篇: HTTP PUT的目的是什么?