Visual C++网络编程经典案例详解 第5章 网页浏览器 HTTP响应 实体标题字段信息 Content-Length标题

该标题必须与Content-type标题一起使用
用于表示实体数据的大小(以字节为单位)
其用法如下

HTTP/1.1 200 OK
Date: Mon,21 Nov 2008 18:33:22 GMT
Sever: Microsoft-IIS/6.0
Accept-Ranges: bytes
Content-Type: image/bmp
Content-Length: 1024
Connection:close

上段字段表示在服务器的响应消息中
实体数据是一幅bmp格式的位图
其大小是1024 B

猜你喜欢

转载自blog.csdn.net/eyetired/article/details/83930329