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
On Sat, 2019-06-01 at 23:27 +0100, Adam Retter wrote: > Hi Norm, > > I think this might be what you are looking for: > > package norm1; > > import org.apache.http.HttpEntity; > import org.apache.http.client.methods.HttpPost; > import org.apache.http.entity.ContentType; > import

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
Hi Norm, I think this might be what you are looking for: package norm1; import org.apache.http.HttpEntity; import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.ContentType; import org.apache.http.entity.mime.FormBodyPart; import

Constructing multipart/mixed requests

2019-06-01 Thread Norman Walsh
Hi all, Apologies if I’ve been 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