Hi Simone, here is an example <https://github.com/2m/akka-stream-sandbox/blob/c8551eeb5ab6922f51b2114c9efe58b72525844e/src/test/scala/FileUploadSpec.scala> 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.
On Fri, May 29, 2015 at 6:31 PM, Simone Scarduzio <[email protected]> wrote: > 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 > > -- > >>>>>>>>>> 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/d/optout. > -- Martynas Mickevičius Typesafe <http://typesafe.com/> – Reactive <http://www.reactivemanifesto.org/> Apps on the JVM -- >>>>>>>>>> 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
