What is HTTP?
HTTP is a protocol. HTTP stands for Hypertext standard protocol. It is defined as a set of rules used for communicating with servers while transmitting any message from client to server.
then, what is HTTPS?
HTTPS is a secure version of HTTP. "s" is Secure in HTTPS. In HTTPS the data sent is encrypted, so that people don't see the message transmitted over the network. By using the secured version the data sent or received is completely encrypted and no one can impersonate it.
When we access a website, our browser sends requests to the server and then the server gives the response in the form of web pages. webpages consist of images, audio, video, html files, and more.
How do we access a website?
When we access a website, the browser sends a request to a web server and downloads the responses. You need to tell the browser specifically from where to access the resources, this is where the URLs help.
URL is a uniform Resource Locator which gives instructions on how to access a resource on the internet.
HTTP methods are a way to send the requests and receive the responses. For example GET, POST, PUT, and DELETE are the methods used in retrieving the information.
If the specific pages are not loaded then a error code is displayed on the browser. The code is known as an error code or HTTP Status code.
A few HTTP status codes are below
500-599 - Server Errors - errors happening on the server side and indicate a major problem with the server handling the request.
200 - OK - a request was completed successfully.
400 - Bad Request - This tells the browser that something was missing in their request. When the client didn't send some parameter then this error would happen.
503 - Service Unavailable - Down for maintenance, or the server cannot handle your request as it is overloaded
201 - Created - A resource has been created, any blog, a new user might be created
404 - Page Not Found - The requested resource does not exist.
Browser Headers
Headers are bits of data you can send to the web server when making requests. Common Request Headers are Host, User-Agent, Content-Length, Accept-Encoding, Cookie, Set-Cookie, Cache-Control, Content-Type, Content-Encoding.
You have heard of cookies, a small piece of data that is stored on your computer. Cookies can be used for many purposes but are mostly used for website authentication. you can delete your cookies whenever delete the browser history.

Comments
Post a Comment