2013-07-17 8 views
0

HTTP 서버가 데이터 크기가 콘텐츠 길이를 초과하는 HTTP 응답을 보낼 때 프록시/게이트웨이가 어떻게 동작해야합니까? RFC 비준수로 떨어 뜨리는 것도 한 가지 방법이지만, 현재이 동작으로 구현/배포가 상당히 많이 이루어지고있는 것처럼 보입니다.이 변경으로 인해 이러한 URL이 깨질 것입니다.HTTP 응답 데이터가 콘텐츠 길이를 초과하는 경우 프록시/게이트웨이 동작

정말 통찰력/포인터를 주셔서 감사합니다.

감사

답변

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.