What is HTTP ?

HTTP Stands for “Hypertext Transfer Protocol.”

HTTP is the protocol used to transfer data over the web. It is part of the Internet protocol suite and defines commands and services used for transmitting webpage data.

The Hypertext Transfer Protocol (HTTP) is designed to enable communications between clients and servers.

HTTP uses a server-client model. HTTP works as a request-response protocol between a client and server.

A web browser may be the client, and an application on a computer that hosts a web site may be the server.

Example – 1:

A client (browser) submits an HTTP request to the server; then the server returns a response to the client. The response contains status information about the request and may also contain the requested content.

Example – 2: 

A client, for example, may be a home computer, laptop, or mobile device. The HTTP server is typically a web host running web server software, such as Apache or IIS. When you access a website, your browser sends a request to the corresponding web server and it responds with an HTTP status code. If the URL is valid and the connection is granted, the server will send your browser the webpage and related files.

Some common HTTP status codes include:

  1. 200 – successful request (the webpage exists)
  2. 301 – moved permanently (often forwarded to a new URL)
  3. 401 – unauthorized request (authorization required)
  4. 403 – forbidden (access is not allowed to the page or directory)
  5. 500 – internal server error (often caused by an incorrect server configuration)

HTTP also defines commands such as GET and POST, which are used to handle form submissions on websites. The CONNECT command is used to facilitate a secure connection that is encrypted using SSL. Encrypted HTTP connections take place over HTTPS, an extension of HTTP designed for secure data transmissions.


URLs that begin with “http://” are accessed over the standard hypertext transfer protocol and use port 80 by default. URLs that start with “https://” are accessed over a secure HTTPS connection and often use port 443.