Hello Xinjun, > I constructed a PostMethod and set MultipartRequestEntity. I put the > SOAPRequest as a StringPart, and the attachment as a FilePart. HttpClient > does not generate the desired MIME Request. I want to specify the StringPart > content-type as "text/xml; charset=UTF-8", but HttpClient just generated > "text/plain; charset=US-ASCII" even if I explicitly set content-type header.
You can override MultipartRequestEntity.getContentType() to specify the value for the Content-Type header. An explicitly set header will be overwritten. hope that helps, Roland
smime.p7s
Description: S/MIME Cryptographic Signature
