On Wednesday, October 14, 2015 at 7:17:14 PM UTC+2, Eric Swenson wrote:
>
> AWS/S3 doesn’t want the form data parts, nor the whole HTTP POST to be
> chunked. So those entities have to be made “strict”. So I had to make each
> MIME part be strict, as well as the final Multipart.FormData
On Thursday, October 15, 2015 at 12:24:48 AM UTC-7, Johannes Rudolph wrote:
>
> Have you seen/tried
> http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-streaming.html? It
> seems to suggest that chunked transfer-encoding is supported, though in a
> bit complicated format where on top of
Eric,
you can create a multipart/formdata request like this, for example:
val formData = {
def utf8TextEntity(content: String) = {
val bytes = ByteString(content)
HttpEntity.Default(ContentTypes.`text/plain(UTF-8)`, bytes.length,
Source.single(bytes))
}
Hi Mathias,
I think you are suggesting pretty much exactly what I did, but I did it in such
a way that I didn’t have to make each body part (corresponding to a form
parameter) manually (I used mapping).
However, AWS/S3 will not accept the Content-Type: text/plain in the body parts.
It
I can't test this as I am not at home but there are multiple form
marshallers, one for url encoding and one for multipart called, I think,
Multipart.FormData. sorry if you already know this.
Hi Eric! :P
On Oct 11, 2015 9:18 PM, "Eric Swenson" wrote:
> AWS/S3 HTTP Post with a
Hey Scott!
When you get a chance, if you can point me to the right one, I'd appreciate
it. I've been looking at the sources, tests, and examples, and I can't find
how to do it. What I'm after is a way to take a Form, and emit a
multi-part MIME message with one part for each field in the form