[
https://issues.apache.org/jira/browse/HTTPCLIENT-950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12876069#action_12876069
]
Oleg Kalnichevski commented on HTTPCLIENT-950:
----------------------------------------------
Why do not you use the strict (standards compliant) mode in this case?
The browser compatibility mode tries to mimic behaviour of old (5.x. 6.x)
version of IE. If you can provide the exact HTTP request body generated by
newer bowsers there would be a case for changing the logic in the compatibility
mode of HttpClient.
Oleg
> HttpMultipartMode.BROWSER_COMPATIBLE -- for files doesn't send Content-Type
> ------------------------------------------------------------------------------
>
> Key: HTTPCLIENT-950
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-950
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpMime
> Affects Versions: 4.0.1
> Reporter: Doua Beri
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> When you want to send files using HttpMultipartMode.BROWSER_COMPATIBLE it
> seems that the Content-Type is ignored. It seems that the browsers( tested
> with firefox and Internet explorer) are sending the content-type header only
> for files.
> It seems that some sites are sensitive about this issue and they choose the
> content-type for a file as a text/plain in case I don't specify one.
--
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]