2013-07-17 33 views

回答

0

如果数据大小超过内容长度,电线上的剩余的字节被认为是响应于下一个(流水线)请求的一部分。

如果没有未完成的请求,以配合这种反应,见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. 
相关问题