On 3/29/12 10:39 PM, Worley, Dale R (Dale) wrote:

>> I am uncertain what the use would be for supplying these
>> content-length headers for constituent body parts in a multipart,
>> but I am thinking that these headers are probably not errors. I
>> agree with you that it is likely that they would be ignored.
>
> The most liberal interpretation is that Content-Length is allowed in
> multipart bodies, and its value must equal the length of the body
> part, as determined by the MIME framing mechanism.  The most
> conservative interpretation is that Content-Length is only allowed in
> "top level" bodies.
>
> Probably a better question to ask is what is the best practice
> regarding Content-Length headers on body parts?

ISTM that the best practice would be to break out the body based on the 
multipart delimiter. Then if the content-length is present, and less 
than the body extracted, use only as much as described by content-length.

        Thanks,
        Paul
_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to