What is HTTP?

By | July 8, 2020

Hello Today’s post is about http, its difference with https and how can we use it in IoT projects.

HTTP stands for hypertext transfer protocol.

Communication is done by this protocol in www (World Wide Web). This protocol determines how information like messages, videos, and other files are transmitted, and how web servers or browsers act in response to different commands.

HTTP communication

For example, when you search a keyword or enter a URL in your browser, this actually sends an HTTP request to the web servers. This request it to fetch data related to the keyword or URL that you entered in the browser search bar. In results web-server transmit the requested web page on browser.

The other main standard that controls World Wide Web working is HTML. Which is responsible for the format and appearance of web pages.

What is HTTPS?

HTTPS stands for hypertext transfer protocol secure.

It’s a secure version of HTTP, which is primarily used to transmit data from the webserver to websites. HTTPS is encrypted in order to increase the security of data transfer and it’s valuable when users transmit sensitive information. For example, logging into bank account, email service, and insurance provider.

Generally every website, but especially those that require login information, should use HTTPS. Sometimes when you search, in modern web browsers such as chrome, websites don’t use HTTPS. These websites are marked differently than those that have green padlock in the URL bar to show that website is secure.

Why HTTPS is important? Why should you care about it?

HTTPS protects websites broadcasts information so that no one can easily view it by interfering on the network. When information is transmitted on simple HTTP, it broke into small data packets that can be hacked using free software. In fact, all types of communications over HTTP are insecure due to plain text. Such as public WI-FI connections, that are highly accessible to everyone.  The most benefit of HTTPS is that data is encrypted, no matter if the data packets are sniffed. Because they will show as nonsensical characters at the output.

Now see if there is no HTTPS on your website then what type of disadvantages you can face. In a website without HTTPS, it may be possible for internet service provider or any other intermediate person to inject information into your webpages without your approval. The internet service provider can depicts ads on webpages and earn revenue from them. It is obvious, that profit of advertisement will not be shared with original owner of website. HTTPS removes the ability of unmoderated of third parties to inject their data into website content.

What is difference between HTTP&HTTPS?

Technically, HTTP and HTTPS use same protocol but HTTPS just have a extension of TLS/SSL encryption over HTTP protocol. Its mean HTTPS just giving a cover to data packets so it cannot be steal by a third party. HTTPS only sure, by using TLS/SSL transmission certificate, that particular provider is original.

When a user connect to website page, the webpage will send information over its SSL certificate which contains the public key, which is necessary to start the secure session. The two computers, the user and the server, then go through a process called an SSL/TLS handshake, which is a repeatedly process to establish a secure connection. 

How a website can use HTTPS?

Many hosting provider platforms provide SSL/TLS certificate for fee and some also charges a fee, like godaddy charge for SSL certificate. Once you have a dedicated IP address, purchase your SSL certificate. This acts as a form of identification for your website.

The SSL certificate is simply a string of numbers and letters that you install on your server. When people visit your site through the HTTPS address, the password is checked, verifying that your website is what it says.

This certificate encrypts all data that flows to and from the server where the certificate is install.


For those website, which does not have SSL certificate does not show https with their domain name.


How can we use http in IoT?

The worldwide web is about the communication of devices that can connect to each other. IoT is based on client and server communication in a network.

usually clients are webserver like chrome, safari or any programmable device which is on internet.

Servers are more often those devices which store data in cloud, they may be computers or other devices like raspberry pi on which you can make database.

IoT devices used HTTP requests to get data from cloud and cloud response in the form of HTTP response.

http server

In up coming tutorials we will learn practical examples of data transfering with http in IoT.

Wrapping up

HTTP is a communication protocol used in worldwide web data transferring. HTTPS is just a secure version of Http, it encrypts data before send and receive.

Thanks for reading, be connected with me

Leave a Reply

Your email address will not be published. Required fields are marked *