问题描述
- httpclient4+怎么禁用编码(Content-Transfer-Encoding)
- httpclient
当POST表单时使用了Content-Type:multipart/form-data时表单自动编码了:
如下POST ------------------ HTTP/1.1Accept-Encoding: gzipdeflateContent-Type: multipart/form-data; boundary=MIME-Version: 1.0Content-Length: 6329Connection: Keep-AliveUser-Agent: Apache-HttpClient/4.3.1 (java 1.5)Cookie: JSESSIONID=Cookie2: $Version=1- - - - -=_Part_35_1834923761.1445844705665Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printableContent-Disposition: form-data; name=""content""<?xml version=3D'1.0' encoding=3D""GBK"" standalone=3D""yes""?><Package xmlns:xsi=3D""http://www.w3.org/2001/XMLSchema-instance""> <Header> <RequestType>01</RequestType> <SendTime>2014-11-28 11:35:05</SendTime> <ThirdSerial>R2015030501</ThirdSerial> <ComSerial xsi:nil=3D""true""/> <Asyn>0</Asyn> <ProductCode>0001</ProductCode> </Header> <Request>
POST是一个表单 xml本身是表单content的值
可是服务器不支持quoted-printable这个编码tmd.
求解
解决方案
邮件编码Content-Transfer-Encoding的各种形式?
时间: 2024-11-17 15:39:00