HTTP Content-Length

来自WHY42
Riguz留言 | 贡献2024年1月17日 (三) 11:27的版本 (创建页面,内容为“The Content-Length header indicates the size of the message body, in bytes, sent to the recipient. <syntaxhighlight lang="http"> Content-Length: <length> </syntaxhighlight> When no Content-Length is received, the client keeps reading until the server closes the connection.<ref>https://stackoverflow.com/questions/15991173/is-the-content-length-header-required-for-a-http-1-0-response</ref> Category:Network Category:RFC Category:Protocol Category…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

The Content-Length header indicates the size of the message body, in bytes, sent to the recipient.

Content-Length: <length>

When no Content-Length is received, the client keeps reading until the server closes the connection.[1]