Content-Transfer-Encoding in file uploading request

后端 未结 2 1047
暖寄归人
暖寄归人 2021-02-09 06:23

I\'m trying to upload file, using XMLHTTPRequest, and sending this headers:

Content-Type:multipart/form-data, boundary=xxxxxxxxx

--xxxxxxxxx
Content-Disposition         


        
2条回答
  •  广开言路
    2021-02-09 06:39

    My previous answer was wrong

    Content-Transfer-Encoding may appear in the a composite body

    http://www.ietf.org/rfc/rfc2616.txt

    There are several consequences of this. The entity-body for composite types MAY contain many body-parts, each with its own MIME and HTTP headers (including Content-MD5, Content-Transfer-Encoding, and Content-Encoding headers).

提交回复
热议问题