[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sip] ABNF issue



Hi,

> >The body does not start with LWS. The body starts with WSP (RFC3261 doesn't
> >define what WSP is, but if I remember correct it is SP or TAB). So, in that
> >case you will have:
> >
> >CRLF CRLF WSP
> >
> >...which, according to the ABNF is:
> >
> >CRLF LWS
>
> You are taking this out of context. It is not the case that you would
> parse through the message replaceing all instances of CRLF WSP with LWS.

So, where in the rules is it said when I should do that, and when I should not?
To my understanding the LWS rule is defined as a "general rule".

> The BNF specifies that message-header ends with a CRLF.

Yes.

> What follows that is one of two things - either another CRLF, marking the end
> of the
> headers, or another message header, which never begins with LWS.