Avoid multipart encoded bug by setting request body instead of generating multipart request