content-length 재사용

Untitled

3.2.5 . 필드 제한

HTTP는 각 헤더의 길이에 미리 정의된 제한을 두지 않습니다.

3.2.6. 필드 값 구성 요소

 token          = 1*tchar

 tchar          = "!" / "#" / "$" / "%" / "&" / "'" / "*"
                    / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"
                    / DIGIT / ALPHA
                    ; any VCHAR, except delimiters

일부 필드에 주석이 포함될 수 있습니다 (예 : User-Agent, Server...)

comment        = "(" *( ctext / quoted-pair / comment ) ")"
ctext          = HTAB / SP / %x21-27 / %x2A-5B / %x5D-7E / obs-text
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:50.0) Gecko/20100101 Firefox/50.0
백슬래시 옥텟("\\")은 단일 옥텟 따옴표로 사용할 수 있습니다.
   인용 문자열 및 주석 구조 내의 메커니즘. 수신자
   인용 문자열의 값을 처리하는 것은 인용 쌍을 처리해야 합니다.
   백슬래시 다음에 오는 옥텟으로 대체된 것처럼.

     인용 쌍 = "\\" ( HTAB / SP / VCHAR / obs-text )

   발신자는 다음을 제외하고 인용 문자열에서 인용 쌍을 생성해서는 안 됩니다(SHOULD NOT).
   DQUOTE 및 백슬래시 옥텟을 인용해야 하는 경우
   그 문자열. 발신자는 주석에서 인용 쌍을 생성해서는 안 됩니다(SHOULD NOT).
   괄호 ["(" 및 ")"]를 인용해야 하는 경우를 제외하고
   해당 주석 내에서 발생하는 백슬래시 옥텟.

The backslash octet ("\\") can be used as a single-octet quoting
   mechanism within quoted-string and comment constructs.  Recipients
   that process the value of a quoted-string MUST handle a quoted-pair
   as if it were replaced by the octet following the backslash.

     quoted-pair    = "\\" ( HTAB / SP / VCHAR / obs-text )

   A sender SHOULD NOT generate a quoted-pair in a quoted-string except
   where necessary to quote DQUOTE and backslash octets occurring within
   that string.  A sender SHOULD NOT generate a quoted-pair in a comment
   except where necessary to quote parentheses ["(" and ")"] and
   backslash octets occurring within that comment.

3.3.3 메시지 바디 길이

  1. Transfer-Encoding 없는 메시지 또는 서로 다른 여러 Content-Length를 포함한 메시지를 수신한 또는 단일 Content-Length의 값이 유효하지 않은 경우