[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12540696
 ] 

Ortwin Glück commented on HTTPCLIENT-317:
-----------------------------------------

Michael,

> String mimeType = "application/soap+xml"; // or "text/xml\", or doesn't 
> actually matter?
> return "multipart/related; type=\"" + mimeType + "\"; start=\"" + 
> ROOTPART_NAME + "\"; " + header.substring( ix );


AFAIK it makes no sense to specify a type attribute. The MIME type of this part 
is multipart/related, period. It is a container whose body (beofre the 
boundary) is usually just empty (or contains a dummy string), and there is no 
need to specify the type of this emtpyness. 

It is also incorrect to reuse the MIME boundary of the parent. It is a new 
container and must therefore start with a new boundary string (and close the 
boundary after the container ends).



> HTTP Client doesn't support multipart/related content-type
> ----------------------------------------------------------
>
>                 Key: HTTPCLIENT-317
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-317
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpClient
>    Affects Versions: 2.0 Final
>         Environment: Operating System: Windows XP
> Platform: PC
>            Reporter: peter
>            Priority: Minor
>             Fix For: 4.0 Final
>
>
> It is not possible to sent data easely as a multipart/related content-type 
> (as 
> discribed in rfc 2387) using Http Client.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to