HttpComponents HttpClient
  1. HttpComponents HttpClient
  2. HTTPCLIENT-950

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

    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.

        Activity

        Doua Beri created issue -
        Oleg Kalnichevski made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        Mark Thomas made changes -
        Workflow jira [ 12512665 ] Default workflow, editable Closed status [ 12558043 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12558043 ] jira [ 12580866 ]
        Mark Thomas made changes -
        Workflow jira [ 12580866 ] Default workflow, editable Closed status [ 12606720 ]
        Oleg Kalnichevski made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            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

                Development