You are on page 1of 7

HYPER TEXT TRANSFER PROTOCOL

HTTP
HTTP

The Hyper Text Transfer Protocol (HTTP) is the client-server


network protocol that has been in use by the World-Wide
Web. Whenever you surf the web, your browser will be
sending HTTP request messages for HTML pages, images,
scripts and styles sheets. Web servers handle these requests
by returning response messages that contain the requested
resource.
HTTP

THE CLIENT
HTTP

THE SERVER

WEB SERVER WEB APPLICATION SERVER


HTTP

HTTP STATUS CODE


HTTP

HTTP METHOD

▸ GET Read Data

▸ POST Insert Data

▸ PUT Update/Replace
Data
▸ DELETE
Remove Data
▸ PATCH
Update/Modify Data
HTTP

SESSION AND COOKIE

Http Client Http Server

Login post

LOGIN SUCCESSFULLY?
1. CREATE SESSION ID
2. RETURN SESSION ID IN A COOKIE
3. STORE SESSION ID IN DATABASE

Set-Cookie

HTTP is stateless

Cookie
LOOKUP SESSION ID
1. SESSION MATCH ?
Content for client 2. SESSION STILL VALID?

You might also like