HTTP Request and Response Messages

Songqin Software Testing

Adhering to Educational Original Intention

Both Asking About Harvest and Cultivation

1. Request Message

Request Message:

Request Line (Generally understanding the content of the request)

Message Header (Additional information for the request, some regulations for requesting and receiving data)

Message Body (Data sent from the client to the server)

HTTP Request and Response Messages

2. Response Message

Response Message:

Status Line (Status Code)

Message Header (Regulatory Information)

Message Body (Contains the data sent from the server to the client)

HTTP Request and Response Messages

3. HTTP Request Parsing Process (Simple Overview)

1. Domain Name Resolution

The user inputs the website address, which is resolved by the Domain Name System (DNS);

2. TCP Three-Way Handshake

A TCP connection request is initiated to the web server using the IP address resolved from the domain name; if the three-way handshake passes, a reliable connection with the web server is established;

3. Sending HTTP Request

The web client sends a request to the web server;

4. Receiving HTTP Response

The web client receives the response from the web server, which contains various data based on the request feedback;

5. Web Client (Browser) Interprets Response

Finally, the browser parses the data in the response, namely the HTML code, and the resources requested in the HTML code, which are then presented to the user by the browser.

ღ The End ღ

Let’s Go to Songqin to Learn Testing

Leave a Comment