p:http-request content-type and encoding

Suppose I want to send a MIME multipart request where the first part
is encoding as UTF-8 and the second part is encoded as ISO-8859-1.

Do I do this:

  <c:multipart ...>
    <c:body content-type="application/xml" encoding="utf-8">...</c:body>
    <c:body content-type="application/xml" encoding="iso-8859-1">...</c:body>
  </c:multipart>

or do I do this:

  <c:multipart ...>
    <c:body content-type="application/xml; charset=utf-8">...</c:body>
    <c:body content-type="application/xml; charset=iso-8859-1">...</c:body>
  </c:multipart>

or have we not considered this case?

Our current description of the encoding attribute only mandates
support for "base64".

It would appear that 'encoding' on p:http-request applies to the
entire body, but in the multipart case, that may not be correct.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Science is like sex: sometimes
http://nwalsh.com/            | something useful comes out, but that is
                              | not the reason we are doing
                              | it.--Richard Feynman

Received on Wednesday, 4 February 2009 12:52:18 UTC