Re: Constructing multipart/mixed requests

2019-06-02 Thread Adam Retter
Thanks, I thought that GitHub was just a mirror for an Apache repo somewhere! I have opened a PR here - https://github.com/apache/httpcomponents-client/pull/151 On Sun, 2 Jun 2019 at 15:43, Oleg Kalnichevski wrote: > > On June 2, 2019 4:30:44 PM GMT+02:00, Adam Retter wrote: > >Oleg, > > >

Re: Constructing multipart/mixed requests

2019-06-02 Thread Oleg Kalnichevski
On June 2, 2019 4:30:44 PM GMT+02:00, Adam Retter wrote: >Oleg, > >Attached is a first draft for a patch against 5.0 to make the >Multipart stuff more applicable for those people who don't want >multipart/form-data. What would be the next stage to progress this? > Could you please submit this

Re: Constructing multipart/mixed requests

2019-06-02 Thread Adam Retter
Oleg, Attached is a first draft for a patch against 5.0 to make the Multipart stuff more applicable for those people who don't want multipart/form-data. What would be the next stage to progress this? On Sun, 2 Jun 2019 at 11:23, Oleg Kalnichevski wrote: > > On Sun, 2019-06-02 at 09:47 +0100,

Re: Constructing multipart/mixed requests

2019-06-02 Thread Oleg Kalnichevski
On Sun, 2019-06-02 at 09:47 +0100, Adam Retter wrote: > > > On my system that produces a HTTP Request like: > > > > > > POST / HTTP/1.1 > > > Content-Length: 456 > > > Content-Type: multipart/form-data; > > > boundary=ZQwFLuoO6V1SFdqg2lI6DaVwlvKIZjj2Pb > > > > I can change this content-type by

Re: Constructing multipart/mixed requests

2019-06-02 Thread Oleg Kalnichevski
utstream -> { try { MessageWriter writer = new DefaultMessageWriter(); writer.writeMessage(message, outstream); } finally { message.dispose(); } }); entityTemplate.setContentType(message.getMimeType()); --- Oleg > On Sat, 1 Jun 2019 at 18:58, Norman

Re: Constructing multipart/mixed requests

2019-06-02 Thread Adam Retter
> > On my system that produces a HTTP Request like: > > > > POST / HTTP/1.1 > > Content-Length: 456 > > Content-Type: multipart/form-data; > > boundary=ZQwFLuoO6V1SFdqg2lI6DaVwlvKIZjj2Pb > > I can change this content-type by calling .setContentType() on the entity > builder, Ah yes! I forgot to

Re: Constructing multipart/mixed requests

2019-06-01 Thread Adam Retter
een down this road before on this list. The > HttpClient 4.5 library has changed the way multipart works (from some > earlier 4.x where I had it working). > > Near as I can tell from looking at the multipart examples in 4.5, > they’re all geared towards file uploading. I’m not intere

Constructing multipart/mixed requests

2019-06-01 Thread Norman Walsh
not interested in file uploading, I want to construct a payload for a web service that’s expecting a multipart/mixed request: I want complete control over the parts, the headers associated with those parts, their content types, etc. I stumbled from HttpClient to MIME4J, prehaps on the advice of someone

Re: Multipart Mixed

2016-06-03 Thread Benson Margulies
org> wrote: > On Thu, 2016-06-02 at 12:52 +0200, Stefan Magnus Landrø wrote: >> Hi there, >> >> We're struggeling with some limitations in the current multipart >> implementation in 4.5 (latest). >> >> The MultipartEntityBuilder is actually building a Multi

Re: Multipart Mixed

2016-06-03 Thread Oleg Kalnichevski
ually want to be able to build a multipart/mixed entity which > does have limitations with respect to filesize as defined in > MultipartFormEntity. > > We're considering improving the MultipartEntityBuilder in such a way that > it can also produce MultipartMixedEntity (new type) >

Re: A minor struggle with multipart/mixed

2016-01-29 Thread Oleg Kalnichevski
ld news. > > > > I'm trying to use the Mime library to set up a multipart/mixed entity. > > > > I need Content-Disposition inline, not form-data. To get it, I have to > > explicitly build the FormBodyParts, as the convenient methods on the > > multipart entity build

Re: A minor struggle with multipart/mixed

2016-01-29 Thread Benson Margulies
PM, Benson Margulies <bimargul...@gmail.com> >> wrote: >> >> > This is with version 4.4.1, so perhaps it's old news. >> > >> > I'm trying to use the Mime library to set up a multipart/mixed entity. >> > >> > I need Content-Disposition in

Re: A minor struggle with multipart/mixed

2016-01-28 Thread Gary Gregory
wrote: > This is with version 4.4.1, so perhaps it's old news. > > I'm trying to use the Mime library to set up a multipart/mixed entity. > > I need Content-Disposition inline, not form-data. To get it, I have to > explicitly build the FormBodyParts, as the convenient methods o

A minor struggle with multipart/mixed

2016-01-28 Thread Benson Margulies
This is with version 4.4.1, so perhaps it's old news. I'm trying to use the Mime library to set up a multipart/mixed entity. I need Content-Disposition inline, not form-data. To get it, I have to explicitly build the FormBodyParts, as the convenient methods on the multipart entity builder all

Re: multipart/mixed and using mime part's charset in Content-Disposition

2010-06-08 Thread Oleg Kalnichevski
On Tue, 2010-06-08 at 11:02 +0530, Saisatish vedam wrote: On Mon, Jun 7, 2010 at 6:48 PM, Oleg Kalnichevski ol...@apache.org wrote: On Mon, 2010-06-07 at 11:52 +0530, Saisatish vedam wrote: Hi, I need to construct a multipart/mixed request with (a) Set Content-type hdr (along

Re: multipart/mixed and using mime part's charset in Content-Disposition

2010-06-07 Thread Oleg Kalnichevski
On Mon, 2010-06-07 at 11:52 +0530, Saisatish vedam wrote: Hi, I need to construct a multipart/mixed request with (a) Set Content-type hdr (along with charset) for individual mime part (b) Encode filename in the Content-Disposition hdr's using that charset (ex: for multibyte file names

Re: multipart/mixed and using mime part's charset in Content-Disposition

2010-06-07 Thread Saisatish vedam
On Mon, Jun 7, 2010 at 6:48 PM, Oleg Kalnichevski ol...@apache.org wrote: On Mon, 2010-06-07 at 11:52 +0530, Saisatish vedam wrote: Hi, I need to construct a multipart/mixed request with (a) Set Content-type hdr (along with charset) for individual mime part (b) Encode filename