The Http ( HyperText Transfer Protocol or HyperText Transfer Protocol ) is the information transmission protocol of the World Wide Web, that is, the code that is established so that the requesting computer and the one that contains the requested information can “Speak” the same language when transmitting information over the network.
With Http, criteria of syntax and computer semantics (form and meaning) are established to establish communication between the different elements that make up the web architecture: servers, clients, proxies. It was created in 1999 by the World Wide Web Consortium in collaboration with the Internet Engineering Task Force.
It is a “stateless” protocol; that is, it does not keep track of previous visits but always starts over. Information regarding previous visits is stored in these systems in so-called “cookies”, stored in the client system.
The Http has gone through numerous versions until reaching the current one at the beginning of the 21st century, called HTTP / 2. Its first attempts occurred in 1991 and produced partial versions in 1996, 1999, 2000, and, finally, the current one in 2015.
What is the Http protocol for?
As has been said, the Http is a language that mediates between client requests and server responses on the Internet, to allow fluid communication and in the same “language”. This protocol establishes the guidelines to follow, the request methods (called “verbs”), and has some flexibility to incorporate new requests and functionalities, especially as their versions progress.
Considering that the Internet is little more than a complex network for the exchange of information between remote computers, these digital tools are key in establishing the bases for ordering and facilitating the transmission of information.
How does the Http protocol work?
The operation of Http is based on a request-response scheme between the web server and the “user-agent” ( user agent ) or client that requests data transmission. A client can be a specific browser when we try to open a web page or the web crawlers ( web crawlers or web spiders) that inspect them.
The server provided them with a structured response on time and equipped with a series of metadata, which establishes the guidelines for the start, development, and closure of the transmission of information. These are the “request methods”, which are the commands that trigger the execution of certain resources, whose files reside on the server.
For example: When opening a specific web page, the information exchange between our web browser and the server where the information resides will establish how the information should be transmitted, where the images are, and in what order they will be shown to me, etc. This exchange of request commands and response codes results in the representation on my computer of the same information originally contained on the server, which may be thousands of miles away.
What is https?
By https, we mean HyperText Transfer Protocol Secure or Hypertext Transfer Protocol, which is nothing more than the secure version of Http, that is a variant of the same protocol that is based on the creation of an encrypted channel for the transmission of the information, which makes it more appropriate for certain sensitive data (such as passwords and personal users ).
Unlike Http, https is protected against the intervention of third parties that may spy on the exchange of information or obtain data from it, through the use of “network layers” that allow only the server and the client to encrypt and decrypt the information sent through the previous exchange of network certificates, a kind of initial validation of trust to establish the transfer of information.