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

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

问题描述

这是什么意思?


  1. 编码内容字符串的字节数,包含在标题中指定的编码。

  2. 内容字符串的字符数。

特别是在Content-Type:application / x-www-form-urlencoded的情况下。

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

推荐答案

rfc2616

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天全站免登陆