Use multipart only if it is present in headers.

Human CURL makes a multipart POST request by default. This is not correct, and should happen only when a file upload is taking place or you actually specify the headers that way.

Please take a look and let me know if this needs any other work.
Thanks.