I am (attempting to) use Ktor for client multipart...
# ktor
I am (attempting to) use Ktor for client multipart form uploading for an image. I think I every set yp okay, but I am getting extra lines between the header and body like this, which the Apache server we are using may be choking on (still gathering logs). Does this sound believable? If so, any way to fix it?
Copy code
User-Agent: Ktor client
Content-Length: 153714
Accept-Language: en-us
Accept-Encoding: br, gzip, deflate

Content-Disposition: form-data; name="p_comId"
To answer my own question: I got a Python script working for the image upload I am working on. It works with only one space between headers and body, but if I add one more space, the server I am calling returns 400. So, the extra spaces that the Ktor MultiPartFormDataContent.writeTo(channel) are inserting like so:
Copy code
are a major issue for me. Anybody from Ktor might be able to help????