hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: multipart/related
Date Mon, 13 Feb 2012 20:57:22 GMT
On Mon, 2012-02-13 at 14:24 -0600, Ted Slusser wrote:
> Hello, 
> I would like to submit a POST with a specialized Content-Type header.  I would like the
Content-Type to be - 
> ContentType: multipart/related; type="application/xop+xml"
> along with the boundary, etc.
> If I set the Content-Type using HttpMessage.setHeader() it interferes with the creation
of the boundary parts of the Content-Type.  Is there another way to "plug-in" to the process
of creating the Content-Type header or some other way of customizing certain attributes of
the Content-Type?
> Thanks,

Subclass MultipartEntity and override its #generateContentType method


To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org

View raw message