HTTP Response 有没有可能添加内容?
Is it possible that HTTP Response adds content?
HTTP/1.1 200 OK\r\n
Date: Tue, 29 Jun 2021 10:48:59 GMT\r\n
Server: Apache\r\n
Upgrade: h2\r\n
Connection: Upgrade, close\r\n
Vary: Accept-Encoding\r\n
Transfer-Encoding: chunked\r\n
Content-Type: text/html; charset=UTF-8\r\n
\r\n
3\r\nEND\r\n0\r\n\r\n
我在PHP发送的只是<?php die('END'); ?>
这个“3”是从哪里来的?在响应中,这个零来自哪里?
要求:
POST / HTTP/1.1\r\n
Host: " . $host . "\r\n
Content-type: application/x-www-form-urlencoded\r\n
Content-length: ".strlen($str)."\r\n
Connection: Close\r\n\r\n
str=string
数字表示分块 HTTP 输出的块长度。
见https://en.wikipedia.org/wiki/Chunked_transfer_encoding#Example
如果您想将其关闭,请参阅 。
HTTP/1.1 200 OK\r\n
Date: Tue, 29 Jun 2021 10:48:59 GMT\r\n
Server: Apache\r\n
Upgrade: h2\r\n
Connection: Upgrade, close\r\n
Vary: Accept-Encoding\r\n
Transfer-Encoding: chunked\r\n
Content-Type: text/html; charset=UTF-8\r\n
\r\n
3\r\nEND\r\n0\r\n\r\n
我在PHP发送的只是<?php die('END'); ?>
这个“3”是从哪里来的?在响应中,这个零来自哪里?
要求:
POST / HTTP/1.1\r\n
Host: " . $host . "\r\n
Content-type: application/x-www-form-urlencoded\r\n
Content-length: ".strlen($str)."\r\n
Connection: Close\r\n\r\n
str=string
数字表示分块 HTTP 输出的块长度。
见https://en.wikipedia.org/wiki/Chunked_transfer_encoding#Example
如果您想将其关闭,请参阅