Add support for multipart form data in request options.

I simply recreated the merge request #925.