什么是“内容长度"?HTTP 标头中的字段? [英] What's the "Content-Length" field in HTTP header?

查看:22
本文介绍了什么是“内容长度"?HTTP 标头中的字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么意思?

  1. 在标头中指定编码的编码内容字符串的字节数.
  2. 内容字符串的字符数.

尤其是在 Content-Type: application/x-www-form-urlencoded 的情况下.

Especially in case of Content-Type: application/x-www-form-urlencoded.

推荐答案

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.

以下帖子处的扩展.

这篇关于什么是“内容长度"?HTTP 标头中的字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆