gpt4 book ai didi

http - HTTP Response中的Content-MD5字段是否通用?

转载 作者:可可西里 更新时间:2023-11-01 15:09:56 29 4
gpt4 key购买 nike

我试过从不同的服务器下载文件,但并非所有服务器都在其 header 中响应 Content-MD5 字段。

我想知道没有资源文件哈希的HTTP响应是否是标准的?

谢谢

最佳答案

The Content-MD5 header field MAY be generated by an origin server or client to function as an integrity check of the entity-body. Only origin servers or clients MAY generate the Content-MD5 header field; proxies and gateways MUST NOT generate it, as this would defeat its value as an end-to-end integrity check. Any recipient of the entity- body, including gateways and proxies, MAY check that the digest value in this header field matches that of the entity-body as receive

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

截至 2014 年 6 月:

The Content-MD5 header field has been removed because it wasinconsistently implemented with respect to partial responses.

RFC 7231 - 超文本传输​​协议(protocol) (HTTP/1.1):语义和内容 - https://www.rfc-editor.org/rfc/rfc7231 (第 92 页)

关于http - HTTP Response中的Content-MD5字段是否通用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8300471/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com