Re: Translating CR LF to HTTP/1 headers

On 2013-09-03 20:02, Martin Thomson wrote:
> On 3 September 2013 08:47, Julian Reschke <julian.reschke@gmx.de> wrote:
>> CR and LF *are* allowed in HTTP/1.1 field *values* (not names), as per the
>> OBS-FOLD ABNF production.
>> (<http://greenbytes.de/tech/webdav/draft-ietf-httpbis-p1-messaging-23.html#header.fields>)
>
> Let's be really clear.  What do you consider in this case to be the
> "value"?  The lexical form or the value-space form?  Because if I sent
> you something like:
>
> Header: value1,
>      value2
>
> The lexical value is one thing, but there is no obligation on a stack
> or intermediary to preserve obs-fold.  The value-space form is simply
> "value1, value2" with a single space replacing all that extra fluff.

Si.

Best regards, Julian

Received on Tuesday, 3 September 2013 18:04:46 UTC