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

在服务器的响应消息中含有实体数据
Content-type标题可以用于指示实体数据的个数
以及所使用的字符集

Content-type:text/html; charset=ASCII

实体数据是文本格式的HTML文件
所使用的字符集为XLM
如果服务器返回一幅 XLM 或其他格式的图片到客户端
则该字段形式应如下

Content-type: image/jpg
Content-type: image/bmp

猜你喜欢

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