Site icon TestingDocs.com

HTTP Protocol

HTTP Protocol

Let’s understand HTTP protocol in this tutorial. HTTP stands for HyperText Transfer Protocol. HTTP is an application-level protocol for data communication on the Internet. It is by default connectionless and stateless protocol.

HTTP Protocol is the primary protocol used to communicate and send 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 to transfer 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:

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.

Exit mobile version