HTTP (Hypertext Transfer Protocol) is a standard protocol used to view/retrieve webpages. web browser make use of this protocol for web-server and client interaction. This permit virtually delivery of documents like images, videos, and text-related files.
The http protocol works on application layer and its default port no is 80. It make use of structured hypertext to establish a logical connection between nodes.
How communication occurs with HTTPClient-server interactions are done through request and response i.e. A browser transmit a HTTP request to web server. After receiving a request, the server start executing an application to process that request and return a response as an output to the client (browser).
For example, when we enter a URL i.e. (https://www.codingtag.com/) in our browser then an HTTP command is sent to server to fetch the requested webpage.
HTTP status codes:Http status code is a response code that web server display which can be beneficial for users to identify the reason of the problem.
404 error:It is a not found error
502 error:It is a bad gateway error
HTTP Featuresa) HTTP is stateless, connection less and media independent protocol
b) It outlines how messages are formatted
c) It is not a connection-oriented
d) It does not require runtime support
Methods included in HTTP:GET
Why HTTP need security?HTTP permits web browser to receive and transmit information across internet. This information is transmitted in a plain text, which can be easily monitored by hackers.
It need to be secured by SSL certificate to maintain privacy and to enhance security to protect websites from hackers.
Difference between HTTP and HTTPs
|Port No. is 80||Port No. is 443|
|Operates on application layer||Operates on transport layer|
|URL begin with http://||URL begins with https://|
|Plain text information is passed across internet||Encrypted information is passed across internet|