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 Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
