Hypertext Transfer Protocol (HTTP) Question:

Download Job Interview Questions and Answers PDF

What is the mean of PUT?

HTTP Interview Question
HTTP Interview Question

Answer:

A PUT request is used when you wish to create or update the resource identified by the URL. For example,
1 PUT /clients/robin
might create a client, called Robin on the server. You will notice that REST is completely backend agnostic; there is nothing in the request that informs the server how the data should be created - just that it should. This allows you to easily swap the backend technology if the need should arise. PUT requests contain the data to use in updating or creating the resource in the body. In cURL, you can add data to the request with the -d switch.
1 curl -v -X PUT -d "some text"

Download HTTP Interview Questions And Answers PDF

Previous QuestionNext Question
What is the mean of 500 Internal Server Error HTTP response codes?Tell me to which OSI layer does IP belong?