HTTP stands for “HyperText Transfer Protocol
HTTP is a protocol which allows the fetching of resources, such as HTML documents
It is the foundation of any data exchange on the Web and it is a client-server
Communication between client computers and web servers is done by sending HTTP Requests and receiving HTTP Responses
A client (a browser) sends an HTTP request to the web
An web server receives the request
The server runs an application to process the request
The server returns an HTTP response (output) to the browser
The client (the browser) receives the response
We can use our browser’s developer tools to see what an HTTP Request and HTTP Response looks like when our browser visits a webpage:
Try the following:
Open up your browser’s developer tools
Select the “Network” tab
In your browser’s address bar, navigate to https://generalassemb.ly/
In the “Network” tab of your developer tools, you will see a list of files that were received from the web server, inspect the file named: generalassemb.ly
Inspect the “Headers”, “Preview” & “Response” tabs