What is HTTP
HTTP
is the movie-rental kiosk interface—how you browse, check out, and return movies.
Client
is the customer at the kiosk;
Server
is the machine’s inventory database.
An
HTTP Request
is your on-screen selection:
Method
→ Action button (“
GET
” to view details, “
PUT
” to update return date, “
POST
” to add a new rental);
Path
→ Movie ID (“movie/1234”);
Version
→ API version (“v1.1”).
Request Headers
are the extra options you set (“HD quality,” “Family-friendly,” “Two-day rental”).
The
HTTP Response
is the screen feedback and printed receipt:
Status Code
→ Result (“
200 Success
,” “
404 Not Found
,” “
500 Out of Service
”);
Response Headers
→ Receipt details (“Due date,” “Price”);
Response Body
→ Movie info and checkout confirmation.
Credit
I copied image
11. HTTP Headers & HTTP Status Codes
which was written by
Prabath Shalitha