I am developing a RESTful API when I notice something strange.
When I make a POST request to create a new record, the form data is sent in the request payload.
But when I make a PUT request to update the record, it adds the form data to the URL, very similar to the GET request.
URL now has a certain length limit. So what happens if a PUT request has more data than this limit.
Will the PUT request fail?
Is it unsafe to use PUT instead of POST to update a record with large data forms?
EDIT:
I am using a NodeJS server. I am using restangular (angular framework) to create my PUT request.
source
share