W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > January 2009

p:http-request - conflicting content-type information for body parts

From: <Toman_Vojtech@emc.com>
Date: Mon, 26 Jan 2009 08:10:47 -0500
Message-ID: <6E216CCE0679B5489A61125D0EFEC7870E4C0D15@CORPUSMX10A.corp.emc.com>
To: <public-xml-processing-model-comments@w3.org>

Hi all,

Suppose I want to send the following multipart data using
p:http-request:

<c:multipart boundary="strcprstskrzkrk">
  <c:header name="Content-Type" value="text/plain"/>

  <c:body content-type="application/xml">...</c:body>
</c:multipart>

What will be the actual value of the Content-Type header of the body
part - application/xml or text/plain?

The spec says (section 7.1.10.2) that: "The content-type attribute
specifies the media type of the body or body part, that is, the value of
its Content-Type header."

>From this I assume that the content-type attribute of c:body overrides
any conflicting information in the headers for the body part, but it is
not really obvious from the spec. ...or, it may be as well the other way
around.

Regards,
Vojtech
Received on Monday, 26 January 2009 13:11:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 26 January 2009 13:11:40 GMT