For the RESTful API, POST has a certain value (create a resource), while PUT has a different value (update an existing resource):
- GET retrieves a list or item
- PUT replaces a collection or item
- POST creates a new item in the collection.
- DELETE deletes a collection or item
However, if really βscript.phpβ, the one who developed it was not very careful when creating its API. "script.php" is pretty much not RESTful at all ... Usually the URL structure of the correct RESTful API looks like this. eg:
source share