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.

  1. HTTP version type

  2. a URL

  3. 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.

  4. 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.

  5. 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.

  6. 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:

    1. an HTTP status code

    2. HTTP response headers

    3. optional HTTP body

  7. 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.

    1. 1xx Informational

    2. 2xx Success

    3. 3xx Redirection

    4. 4xx Client Error

    5. 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

  8. 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.

  9. 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