akka-http POST request with form data

1,852 views
Skip to first unread message

Simone Scarduzio

unread,
May 29, 2015, 11:31:15 AM5/29/15
to akka...@googlegroups.com
Hi there,

What's the best akka-http idiomatic way I can send an HTTP POST request with some form data in it? I can do any HTTP requests, but the part I'm stuck with is encoding the form data into the body.

Thanks,

_S

Martynas Mickevičius

unread,
Jun 16, 2015, 5:13:00 AM6/16/15
to akka...@googlegroups.com
Hi Simone,

here is an example that uses MultiPart Form to send some ByteStrings to the server. You can adapt that example by changing multipartForm construction and send some simpler data like Strings or Ints.

--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.



--
Martynas Mickevičius
TypesafeReactive Apps on the JVM
Reply all
Reply to author
Forward
0 new messages