Rainer Gerhards wrote:
> If you look at this, it looks like the payload of this BEEP frame is
>
> \r\n  [CRLF]
> <29>Oct 27 13:21:08 ductwork imxpd[141]: Heating emergency.
>
> To me, this initally looked like while there is no content-type
> specified, the message still contains the (then empty) MIME header.

That is correct. Each message exchanged in BEEP is formatted with MIME.
MIME specifies that the headers and body are separated by CRLF. The fact
that there are no headers must be indicated by terminating the headers.

> Which is then terminated by CRLF. While working with SDSC, I found that
> it does NOT expect the CRLF to be present (in fact, it fails, if it is).

That's incorrect behavior.

> I then looked through 3195, 3080 and 2045 and nowhere found mentioned
> that this CRLF must be present. RFC 3080 says in 2.2:
>
> ---
>    A message is structured according to the rules of MIME.  Accordingly,
>    each message may begin with "entity-headers" (c.f., MIME's Section 3
>    [1]).  If none, or only some, of the "entity-headers" are present:
>
>    o  the default "Content-Type" is "application/octet-stream"; and,
>
>    o  the default "Content-Transfer-Encoding" is "binary".
> ---
>
> Other than that, 3080 specified payload just to be *OCTET.

Note that the second thru last frame of a complete message does not need
to have MIME headers, so indeed the payload of a frame is just *OCTET.

That the message is structured according to the rules of MIME implies
that headers are separated from body by CRLF, even if there are no headers.

  From the
> description, however, I think that the CRLF in syslog raw payload is NOT
> necessary.

That's incorrect.

> Even 3195 does not say anything specifically about this CRLF, it is just
> in the samples. Of couse, I may be overlooking the obvious ... So I
> thought I simply ask. Could someone clarify? Mtr, do you have any
> advise?

What you seem to be overlooking is that it's not BEEP that requires the
CRLF, but rather MIME.

Hope this helps.

-- 
Darren New, San Diego CA USA (PST)
Things to be thankful for, #187:
  There is no Chinese tradition of changing from
  shoes to slippers to get off an escalator.



Reply via email to