Re: Constructing multipart/mixed requests

2019-06-01 Thread Norman Walsh
Adam Retter writes: > Hi Norm, Hi Adam. Thanks for the example; you’ve threaded the needle better than I did. Maybe it’s good enough, but it’s still not exactly what I was hoping for. > final FormBodyPart part1 = FormBodyPartBuilder.create() > .setName("part1") T

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 org.apache.http.entity.mime.FormBodyPartBu

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 in