Abstract
- Defines the format of HTTP Request & HTTP Response
- Stateless Network Protocol
- HTTP uses TCP as its underlying transport protocol, so it doesn’t need to worry about data integrity, which is handled by TCP. However, this also means it suffers from TCP Slow Start
- Allow transfer any types of Network Object
User Authentication
Server doesn’t know if Client login before or not, client needs to include things like Cookies in HTTP Headers to show it is authenticated
Bandwidth Demanding
Bloated HTTP Headers is included in both HTTP Request & HTTP Response.
Python HTTP Server
You can spin up a HTTP Server using
python3 -m http.server <PORT_NUMBER>
easily.
HTTP Mechanism
- Client initiates a TCP Connection with the Server
- Client and server access TCP through their Network Domain Socket
- Both client and server send/receive HTTP Request/HTTP Response from the socket interface