HTTP
What is HTTP Request?
It is the way to communicate between a browser (client side ) and a server. The browser makes requests to load web pages on the browser.
And Each request carrier has some kind of information (data) while making a request to the server.
HTTP version type
a URL
An HTTP method
An HTTP method sometimes referred to as an HTTP verb, indicates the action that the HTTP request expects from the queried server.
So, we have different types of methods as mentioned below. HTTP methods are used when you make requests to the server. The most common uses are GET and Post, if you’re expecting something from the server that needs to be loaded on the browser, will use the GET method, and If you send something to the server, will use the POST method.
HTTP request headers
While making the request, the HTTP header contains some kind of information about the request (Text) in key-pair value. Like
These headers communicate core information, such as what browser the client is using and what data is being requested.
Optional HTTP body.
So, see when you make a POST request, You’ll send the information being submitted to the server, such as a username and password, or any other data entered into a form.
HTTP response
The HTTP response is what a browser is receiving from a web server after making a GET request. such as data in an array, object (JSON data)
A typical HTTP response contains:
an HTTP status code
HTTP response headers
optional HTTP body
HTTP Status Code
Status code tells whether your HTTP request has been successfully completed or not.
It is a three-digit code. We have five kinds of HTTP status codes. That will tell about your HTTP requests.
1xx Informational
2xx Success
3xx Redirection
4xx Client Error
5xx Server Error
The “xx” refers to different numbers between 00 and 99.
You can check out this link to learn more: https://quickref.me/http-status-code#1xx-information
HTTP response headers
Much like an HTTP request header. An HTTP response header is a component of a network packet that is sent by a Web server to a Web browser. It contains Web-based data from the server.
HTTP response body
After making a successful GET request, we get some information from the Web server in the response body.
Read:- https://www.cloudflare.com/en-gb/learning/ddos/glossary/hypertext-transfer-protocol-http/
Last updated