Content-Length

优质
小牛编辑
131浏览
2023-12-01

Content-Length实体报头指示该实体主体的大小,以字节为单位的十进制数,发送到接收方。

Header type

Entity header

Forbidden header name

yes

语法

Content-Length: <length>

指令

<length> 十进制数字的长度。

规范

Specification

Title

RFC 7230, section 3.3.2: Content-Length

Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing

浏览器兼容性

Feature

Chrome

Firefox

Edge

Internet Explorer

Opera

Safari

Basic Support

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

Feature

Android

Chrome for Android

Edge mobile

Firefox for Android

IE mobile

Opera Android

iOS Safari

Basic Support

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)