HTTP defines eight methods (sometimes referred to as ‘verbs’)
Can you help me find examples for each one so I can test and understand them better?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First you should take a look into the HTTP 1.1 specification, especially the section method definitions.
OPTIONS Get information about how the server allows to communicate with.
Request:
Response:
GET Retrieve a resource.
Request:
Response:
HEAD Like GET, but returns just the HTTP header.
Request:
Response:
POST Create a new resource.
Request:
Response:
PUT Send data to the server.
DELETE Delete an existing resource.
TRACE Return the request headers sent by the client.
Request:
Response:
I don’t know exactly if these examples are correct. Feel free to correct them.