https://kotlinlang.org logo
#ktor
Title
# ktor
m

Marcin Wisniowski

04/27/2019, 3:40 PM
(Succeeded differently, but the questions still stands why the example from the documentation doesn't work, the
formData
function is very nice, why doesn't it work?)
b

bdawg.io

04/27/2019, 5:41 PM
The
formData { ... }
DSL returns you a
List
of parts to be used with
MultiPartFormDataContent
which returns
multipart/form-data
. You can use
FormDataContent
which returns
application/x-www-form-urlencoded
with
Parameters.build { ... }
2 Views