What is HTTP?
HTTP is basically a protocol used on the Internet for transfering information between clients and servers. These communications between the client and the server happen via requests and responses.
Commonly used HTTP Methods
GET: To retrieve information from the server using the URI.
Head: Same as GET but transfer the status line and header section only.
POST: Used to send data to the server such as changing existing data or creating new data like new customer information, new file upload etc. date customer information, new file upload etc.
PUT: Replaces representations of the target resource by uploading modified content.
DELETE: To Delete data from the server.
OPTIONS: Allows the client to determine the options and/or requirements associated with a resource, or the capabilities of a server, without implying a resource action or initiating a resource retrieval.
Most Common Response Status Code
200 range: Successful response.