Hello,

I try to send a file with multipart/form-data with mime type "text/html;
charset=UTF-8" and it fails with an exception

java.lang.IllegalArgumentException: MIME type may not contain reserved
characters
    at org.apache.http.util.Args.check(Args.java:36)

It looks like ";" is forbidden for mime type, where according to docs, it's
perfectly fine to have it. https://en.wikipedia.org/wiki/Media_type

I tried to switch implementation to the Java, but this implementation does
not support local path, or I simply don't know how to construct it.

How to fix the problem?

-- 

*Łukasz Pyrzyk*

Co-founder of the Dotnetos.org <https://dotnetos.org>

Software Engineer • Speaker  • Lecturer

Blog <https://pyrzyk.net/> | Twitter <https://twitter.com/lukaszpyrzyk> |
LinkedIn <https://www.linkedin.com/in/lukaszpyrzyk/> | GitHub
<https://github.com/lukaszpyrzyk> |

Reply via email to