Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-950

HttpMultipartMode.BROWSER_COMPATIBLE -- for files doesn't send Content-Type

    XMLWordPrintableJSON

    Details

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              douaberi Doua Beri
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified