Lisa Dusseault wrote:
>
> If I understand correctly, that's not the only place where RFC2616's LWS
> rules get us into trouble.
>
> TimeOut = "Timeout" ":" 1#TimeType
> TimeType = ("Second-" DAVTimeOutVal | "Infinite")
> DAVTimeOutVal = 1*digit
>
> Applying the 2616 word-based grammer to those rules, we could have
> Timeout headers like
>
> Timeout: Second- 1111
Yes.
> Timeout: Second-1 1 1 1
No.
> Is my understanding of 2616 BNF grammar correct? I'm not sure if
> 1*DIGIT is one token or several, so it's not entirely clear to me if the
> second example is allowed. Certainly the intent of 2616 is not to allow
> that because values like Content-Length are defined as 1*DIGIT.
Best regards, Julian