HTTP Protocol
HTTP Protocol
In this tutorial, we will learn about the HTTP protocol. HTTP stands for HyperText Transfer Protocol. It is an application-level protocol for data communication on the Internet. By default, it is connectionless and stateless.
The HTTP Protocol is the primary protocol for communicating and sending data between the web browser application(client) and the web server. Websites and web applications have web pages that are displayed on the browser. The text available on a web page is called hypertext. The HTTP protocol contains a set of rules for transferring hypertext between a browser and a server.
HTTPS
HTTPS is the secure version of the HTTP protocol. ‘S’ stands for Secure in the acronym. It is a secure way to send data between a web server and a web browser. HTTPS uses encryption technology to increase the security of data transfer between the client and the server.
By default, we can use this protocol for all communication. But it’s particularly important when sensitive data is transmitted like passwords, credit card numbers, confidential company data, etc.
HTTP Specification
The HTTP protocol provides a standardized way for computers to communicate on the World Wide Web. Web application pages are displayed on the browser. The text available on a web page is called hypertext. The HTTP protocol contains a set of rules to transfer hypertext between a browser and the server. HTTP specification specifies how client requests will be constructed and sent to the server, and how servers respond to these client requests.
HTTP Ports
The default HTTP ports are as follows:
- HTTP -> 80
- HTTPS -> 443
What is stateless?
When a client request is given multiple times to a server and a server is not recognizing that request then we call that behavior “stateless”. A webserver doesn’t recognize the client because of the HTTP protocol. Application Programmers can convert the stateless protocol into a stateful protocol. For example, we need to use a technique called session tracking.
What is stateful?
When the server recognizes the request of a client then that behavior is called stateful. Application programmers use session tracking to make the communication stateful. For example, online shopping portals.