0
当HTTP服务器发送数据大小超过内容长度的HTTP响应时,代理/网关应该如何工作? 将它作为RFC不合规行为是一种解决方法,但看起来现在有相当多的实施/部署,并且此更改最终会打破这些URL。HTTP响应数据超出内容长度时的代理/网关行为
真的很感谢任何见解/指针。
谢谢, 开发
当HTTP服务器发送数据大小超过内容长度的HTTP响应时,代理/网关应该如何工作? 将它作为RFC不合规行为是一种解决方法,但看起来现在有相当多的实施/部署,并且此更改最终会打破这些URL。HTTP响应数据超出内容长度时的代理/网关行为
真的很感谢任何见解/指针。
谢谢, 开发
如果数据大小超过内容长度,电线上的剩余的字节被认为是响应于下一个(流水线)请求的一部分。
如果没有未完成的请求,以配合这种反应,见http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-26#section-3.3.3 -
If the final response to the last request on a connection has been
completely received and there remains additional data to read, a user
agent MAY discard the remaining data or attempt to determine if that
data belongs as part of the prior response body, which might be the
case if the prior message's Content-Length value is incorrect. A
client MUST NOT process, cache, or forward such extra data as a
separate response, since such behavior would be vulnerable to cache
poisoning.