且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

什么是“内容长度"?HTTP 标头中的字段?

更新时间:2023-08-25 09:46:52

rfc2616

Content-Length entity-header 字段表示entity-body,十进制的八进制数,发送给接收者,或者,在在 HEAD 方法的情况下,实体主体的大小将如果请求是 GET,则已发送.

The Content-Length entity-header field indicates the size of the entity-body, in decimal number of OCTETs, sent to the recipient or, in the case of the HEAD method, the size of the entity-body that would have been sent had the request been a GET.

内容类型是什么并不重要.

It doesn't matter what the content-type is.

以下帖子处的扩展.