[
https://issues.apache.org/jira/browse/HTTPCLIENT-960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12883929#action_12883929
]
Marc Guillemot commented on HTTPCLIENT-960:
-------------------------------------------
Subclassing wasn't possible. Rather than to copy and fix HttpEntity and
MultipartEntity, we now use a hack: we access MultipartEntity's private field
multipart and change the CONTENT_DISPOSITION field value to contain as well
\r\nContent-Type.... It's not nice but...
> HttpMultipart doesn't generate Content-Type part header in mode
> BROWSER_COMPATIBLE
> ----------------------------------------------------------------------------------
>
> Key: HTTPCLIENT-960
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-960
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpMime
> Affects Versions: 4.0.1
> Reporter: Marc Guillemot
>
> Browsers (tested with Firefox 3.6 and IE6) send a Content-Type header for
> file parts, what org.apache.http.entity.mime.HttpMultipart doesn't do in
> BROWSER_COMPATIBLE mode.
> Example:
> -----------------------------142889018617181602061216500409
> Content-Disposition: form-data; name="myFileFieldName2";
> filename="webtest.png"
> Content-Type: image/png
> In HtmlUnit we wil subclass HttpEntity and MultipartEntity to fix this
> problem.
--
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]