52ky 发表于 2022-4-26 19:54:04

12 响应状态码该怎么用?.pdf

在前两讲中,我们学习了 HTTP 消息中请求行的组成部分,包括请求方法和 UR。 使用请求行,添加以下头域组成请求头,可以通过 TCP/IP 协议发送到服务器。
服务端收到请求消息,解析后需要处理。 具体的业务逻辑五花八门,但最终还是要拼出一条响应消息,发回给客户端。
响应消息由响应头加上响应体数据组成,响应头由状态行和头域组成。

(In the first two lectures, we learned the components of the request line in the HTTP message, including the request method and ur. Using the request line, add the following header fields to form the request header, which can be sent to the server through TCP / IP protocol.The server receives the request message and needs to process it after parsing. The specific business logic is varied, but in the end, you still have to spell out a response message and send it back to the client.The response message consists of the response header and the response body data. The response header consists of the status line and the header field.)









页: [1]
查看完整版本: 12 响应状态码该怎么用?.pdf