I am (attempting to) use Ktor for client multipart...
# ktor
t
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



--3e9d8564-2440331c-2bc8a4e3-2a59ce744dd5479a2de37096-3fd591e8-4dbb8fc5-
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
channel.writeFully(RN_BYTES)
            channel.writeFully(RN_BYTES)
are a major issue for me. Anybody from Ktor might be able to help????