HTTP

The Hyper Text Transfer Protocol (HTTP) is one of most widely used application protocols for communicating over the internet. HTTP is a request-response, client-server protocol, where a client sends a request to a server for information and the server respond with the results.

HTTP is a stateless protocol. When a client sends a request to the server, it maintains a connection with the server only until the server responds or a connection times out. For each request, a new connection must be established. With the help of the diagram in Figure 3.3, let's understand response-request architecture:

Figure 3.3

The client sends a request to ...

Get Internet of Things with Raspberry Pi 3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.