RE: [Sip] Editorial question on MIME example

"Dan Wing" <dwing@cisco.com> Thu, 20 December 2007 09:16 UTC

Return-path: <sip-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1J5HVy-0008ML-3K; Thu, 20 Dec 2007 04:16:26 -0500
Received: from sip by megatron.ietf.org with local (Exim 4.43) id 1J5HVw-0008Fh-CJ for sip-confirm+ok@megatron.ietf.org; Thu, 20 Dec 2007 04:16:24 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1J5HVv-0008AY-Hg for sip@ietf.org; Thu, 20 Dec 2007 04:16:23 -0500
Received: from sj-iport-6.cisco.com ([171.71.176.117]) by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1J5HVv-0004u8-5m for sip@ietf.org; Thu, 20 Dec 2007 04:16:23 -0500
Received: from sj-dkim-2.cisco.com ([171.71.179.186]) by sj-iport-6.cisco.com with ESMTP; 20 Dec 2007 01:16:22 -0800
Received: from sj-core-2.cisco.com (sj-core-2.cisco.com [171.71.177.254]) by sj-dkim-2.cisco.com (8.12.11/8.12.11) with ESMTP id lBK9GMLq021783; Thu, 20 Dec 2007 01:16:22 -0800
Received: from dwingwxp01 ([10.32.240.198]) by sj-core-2.cisco.com (8.12.10/8.12.6) with ESMTP id lBK9GLP9003243; Thu, 20 Dec 2007 09:16:22 GMT
From: Dan Wing <dwing@cisco.com>
To: 'Christer Holmberg' <christer.holmberg@ericsson.com>, sip@ietf.org
References: <CA9998CD4A020D418654FCDEF4E707DF03C4FD1B@esealmw113.eemea.ericsson.se>
Subject: RE: [Sip] Editorial question on MIME example
Date: Thu, 20 Dec 2007 01:16:21 -0800
Message-ID: <22c301c842e8$fcdb1040$c6f0200a@cisco.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
In-Reply-To: <CA9998CD4A020D418654FCDEF4E707DF03C4FD1B@esealmw113.eemea.ericsson.se>
Thread-Index: AchC5DzADDOM9rrzTRaLkpP5dutlHgAAZ98g
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; l=1250; t=1198142182; x=1199006182; c=relaxed/simple; s=sjdkim2002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=dwing@cisco.com; z=From:=20=22Dan=20Wing=22=20<dwing@cisco.com> |Subject:=20RE=3A=20[Sip]=20Editorial=20question=20on=20MIM E=20example |Sender:=20; bh=0GxmwMH9gUqJbSvPBEVR73XjUYUWegDBgySwB7dvBgM=; b=Xix29+s67NP/MAqVit5YhNUojJUXThugTD9FccpvfgDN8iKXd8doUMYdhW D2D0LKVyoEBOemZCL9tZKHI4AG0ctl5BK9DJqQeuwZtBvyiDoshoIMLOWIwo DjDAacm64p;
Authentication-Results: sj-dkim-2; header.From=dwing@cisco.com; dkim=pass ( sig from cisco.com/sjdkim2002 verified; );
X-Spam-Score: -4.0 (----)
X-Scan-Signature: 9466e0365fc95844abaf7c3f15a05c7d
Cc:
X-BeenThere: sip@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Session Initiation Protocol <sip.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/sip>, <mailto:sip-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:sip@ietf.org>
List-Help: <mailto:sip-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/sip>, <mailto:sip-request@ietf.org?subject=subscribe>
Errors-To: sip-bounces@ietf.org

> Now, as far as I know (please correct me if I am wrong) Content-Length
> is NOT a MIME header.

Right, it isn't.  It could be argued that SIP's Content-Length was taken from
HTTP (RFC1945) rather than MIME.  It could be argued HTTP took the idea from
email -- Content-Length used to be common in email headers a decade or two ago
(but Content-Length didn't work too well for email for a variety of reasons).
RFC2076 (February 1997) lists it, and says it was not a standard email header
at the time.

> If so, I guess it shouldn't be used as a MIME
> header (together with Content-Type, Content-Transfer-Encoding etc)?

RFC2045 does say:

   Any sort of field may be present in the header of an entity,
   but only those fields whose names begin with "content-" actually have
   any MIME-related meaning.

but of course Content-Length doesn't have any meaning to MIME (neither would
Content-Crayon).  But neither of those headers do harm to a MIME parser,
because a MIME parser ignores fields it doesn't understand.


I guess you're saying SIP should have used something like "Length:" instead of
"Content-Length:" to avoid collision with MIME's self-claimed ownership of all
field names that begin with "Content-"?

-d


_______________________________________________
Sip mailing list  https://www1.ietf.org/mailman/listinfo/sip
This list is for NEW development of the core SIP Protocol
Use sip-implementors@cs.columbia.edu for questions on current sip
Use sipping@ietf.org for new developments on the application of sip