could you please tell me if the following syntax is compatible with rfc3261? Thanks.
401 Unauthorized:
Digest realm="movistar.tel",\r\n nonce="35e21fba60422a1f2D6a1fde23235c885d287d50e45fd49d56a354",\r\n algorithm=MD5,\r\n qop="auth"
or should be
Digest realm="movistar.tel",nonce="35e21fba60422a1f2D6a1fde23235c885d287d50e45fd49d56a354",algorithm=MD5,qop="auth"
I'm trying to analyze using "https://github.com/nygge/abnfc/blob/master/samples/sip/rfc3261.abnf" without success.
Please, can you help me to understand this?. Sorry my bad english. Thanks.
The rule is defined in section 25.1 of rfc3261
In most place CRLF can be added for readability. Make sur at least a WSP is located right after this CRLF. This helps to differentiate new headers from LWS when parsing.
CONCLUSION: both lines seems to be valid.