Simple Guidance For You In HTTP.
HTTP is an application layer protocol that allows the transfer of data between machines. Most common use of HTTP is in loading web pages where HTML documents are fetched along with the other resources like images, CSS & JavaScript that it uses.
HTTP Request Method — used by the system requesting the resource to specify the type of request
GET — can be used to fetch web pages
POST — can be used to submit login data
PUT — can be used to update data
Other HTTP methods are HEAD, DELETE, OPTIONS, CONNECT, TRACE & PATCH
HTTP Response Status Code — seen in the response message. Used by the system receiving the request, to specify the result of the request.
1xx — Informational responses
2xx — Successful responses eg: 200 OK — Request successfully completed
3xx — Redirects eg: 301 Moved Permanently — Requested resource was moved permanently to a different location
4xx — Client errors eg: 404 Not Found — Requested resources wasn’t found
5xx — Server errors
Interview Corner :
1. What is HTTP? Why was it introduced?
2. What happens when you type google.com in a browser?
3. What are the main HTTP verbs/methods?
4. What are the different HTTP response codes?
5. What is the difference between HTTP and HTTPS?
Thank You and Have a Nice Day…. : )
Source: crio.do(winter-of-doing-program)