What is HTTP?

The Hypertext Transfer Protocol (HTTP) is what allows your browser to communicate with a server and get information from the Internet.

what is http

HTTP is a protocol for encoding and transporting information, like text, images, sound, video and multimedia, between a web browser and a web server over the Internet

The Hypertext Transfer Protocol (HTTP) is what allows your browser to communicate with a server and get information from the Internet. It is the foundation of how we browse the web, and it’s essential for you to understand this protocol in order to build websites or apps that do anything other than display static content. In this article, we will discuss HTTP requests and HTTP responses, as well as some important headers you’ll need when building out your own website.


HTTP stands for Hypertext Transfer Protocol. It is the language of the web, and it is what makes your browser show you a website. HTTP defines how data should be formatted so that you can see images, read text, or watch videos online. This article will explain everything about HTTP in detail so that you know how to use it on your computer when browsing websites!

HTTP is a protocol, which stands for Hypertext Transfer Protocol. It is the standard that web browsers use to request and receive information from a server on a network. The HTTP protocol was designed by Tim Berners-Lee in 1991 as part of his original design for what would become the World Wide Web. HTTP is the acronym for Hypertext Transfer Protocol. It’s a way of transferring data over the internet between web servers and browsers. HTTP can be used in many different scenarios, such as when you want to view a website on your phone or use it in conjunction with SSL encryption.

HTTPS is the more secure variant, which most websites use today. Learn more about HTTPS here

What is HTTP used for?

HTTP is the protocol that most websites use to communicate with web browsers. It’s also used for many other things, like downloading files on your computer or mobile device; transferring data between two servers on the internet, and even sending messages from one mobile phone to another.

The Hypertext Transfer Protocol can be seen as an application layer protocol, meaning that its job is to deliver data from one computer system to another with a message-based structure. The client requests some type of resource (for example, a web page) by sending an HTTP request line followed by additional headers, each on their own line. Once this has been sent successfully, the server responds with an HTTP response line followed by any number of header lines in order to provide requested

This is especially concerning as it allows all types of devices, such as cameras and DVRs running on older firmware with weak telnet password authentication to become part of a botnet army without any changes.

While we were able to confirm these reports, we also noted something rather unusual – HTTP was being used instead of the more common UDP or TCP protocols. This immediately set off alarms and led us to believe there was an underlying reason for this switch in tactics; one which resulted in additional capabilities for the malware author. 

HTTP data exchange

TTP data exchange enables two services to communicate with each other.  It is the process of passing information between two systems using HTTP requests and responses.  There are several ways in which information can be passed through this communication channel, including posting form data, sending JSON or XML data, etc. But for now, let’s take a look at how it works when we pass form-encoded key-value pairs in the body of an HTTP POST request. Using Python to perform HTML forms requests

Python has several modules that will help you send out web service requests (urllib2), receive responses (socket server), and parse HTML pages (BeautifulSoup). So if want to parse your received HTML page you will need to install the BeautifulSoup library.

Also, in order to send out HTTP POST requests, you will also need the urllib2 module. Here is an example on how to use these modules together:

  • import socketServer
  • import urllib2
  • request = urllib2.Request
  • response = urllib2.urlopen(request)
  • htmlString = response.read()

HTTP authentication

When a web interaction starts, the following things usually happen This is known as “HTTP Basic Authentication”. The idea behind it is that when you make a request to a webpage, in addition to sending the headers with the appropriate content type and such, you also send along some credentials encoded in base64 (yes, that extremely annoying encoding). Now for each browser out there, there is an associated login/password which one uses to log into the website. The credentials sent by your browser need to match up exactly with what’s expected of it. Note that only the username and password are sent over in clear text – everything else goes over encrypted using SSL/TLS. The credentials are sent as part of the “authorization” header, and look like this:

HTTP application session

HTTP is a stateless protocol. That means that each request must contain all the information required to service the request and direct the recipient to take appropriate action, as opposed to other protocols like FTP or Telnet.

There are some other aspects of HTTP which make it suitable for use as a session mechanism:

It is based on text, so there’s no binary code to be transformed through an encoding such as BinHex or UUencode (though these exist for web traffic!) before being injected into another system; It uses TCP, specifically port 80 – this means if your application can control your outgoing traffic then you have free reign over how much data you inject into someone else infrastructure without any suspicion being raised by firewall logs; It uses a client/server model.

The client sends requests and the server responds to those requests asynchronously, providing plenty of opportunity for obfuscation or injection into another system by responding with data from your own machine

It is widely supported, so you can inject HTTP traffic to any target platform without having to know anything about their particular implementation of web protocols and services. The HTTP response message is the data received by a client device from the webserver. 

The problem: We’ve got no session identifier!

HTTP does not provide a mechanism for identifying which session we’re trying to hijack. The solution? We need some way of creating our own session identifier that we can send over in place of an existing one; if we succeed then the recipient will fork our input into a new HTTP session (thus achieving our goal of hijacking an HTTP session).

HTTP, considered as web resources or a transfer protocol for the world wide web and is based on a client/server model in which a user-agent (the client) would request information from a remote computer via the HTTP protocol, and receive requested data in return.

Request methods of HTTP

Though you can build a full-stack web server with just getting and POST, as the app grows, it becomes harder to manage. The HTTP client that you might meet methods which are: OPTIONS, HEAD, PUT, DELETE and TRACE. These requests will help you handle app data better and provide convenience for managing session data.


The HTTP OPTIONS method is used by the HTTP clients to query information about the communication options available on the requested resource. It’s very rarely supported by browsers because it’s not actually used in practice by end-users, making it almost useless. The exception is Internet Explorer 5+ that does support this feature, though only if it’s been activated through a setting.


The HTTP HEAD method is identical to the GET method except that transfer of response header fields is omitted. This means you can’t access any page content, but usually, you don’t need it, so this makes it lighter than a regular request and it’s faster. Google Chrome and Opera support this method as well as most proxy servers.


The HTTP PUT method requests that a specified resource be stored under the supplied effective request URI. The fundamental difference between using POST and PUT for creating resources is that POST allows the client to create a resource with a request independent of what the resource will be, while PUT always creates a new instance of the resource identified by the effective request for web clients.


The HTTP DELETE method requests that the origin server remove the association between the effective request URI and the resource identified by it. After successful implementation, all effects of any methods executed on the specified resource prior to the DELETE (including effects in other resources resulting from those methods)


The HTTP TRACE method is used to echo back the received request so that a client can see what is being received and perhaps use the information for testing or diagnostic purposes. When TRACE is used, the final recipient is able to see all of this data – which makes it a major security concern.

The Bottom Line

HTML is the language that web pages are written in. It stands for HyperText Markup Language, and it’s what tells browsers how to display a web page. HTML does not include commands for things like loading images or playing video – these are handled by separate technologies such as CSS, JavaScript, AJAX, etc.




Home » Web Hosting » Glossary » What is HTTP?

Join our newsletter

Subscribe to our weekly roundup newsletter and get the latest industry news & trends

By clicking 'subscribe" you agree to our terms of use and privacy policy.