While making multipart/form-data post requests for file upload using byte buffer as file contents, that buffer gets corrupted for some reason. So the contents posted are far from what I wanted to be posed.
When I supply file path to curl in order to post that file - everything works fine.
Maybe I don't supply all needed parameters in AddSection() in case of buffer contents?
Here are 2 example form sections codes:
/********** byte buffer gets corrupted somewhere in curl ***********/
byte buffer = new byte;
// populate buffer
CURLFORMcode code = form.AddSection(CURLformoption.CURLFORM_COPYNAME, "inpFile1",
/*********** wroks fine ************/
CURLFORMcode code = form.AddSection(CURLformoption.CURLFORM_COPYNAME, "File.bin",
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.