prevent UnityWebRequest.Post() from Url-Encoding the data ?

better workaround than the WebRequest.Put() hack is to build a WebRequest ‘from scratch’:

  request                 = new UnityWebRequest(url);
  request.uploadHandler   = new UploadHandlerRaw(myStringToByteArrayConverter(body));
  request.downloadHandler = new DownloadHandlerBuffer();
  request.method          = UnityWebRequest.kHttpVerbPOST;

funny; a year and a month later, i ran into this problem again, and completely re-diagnosed it again w/ WireShark, then googled for something appropriate and found this... memory like a sieve.

–

Thank you so much for this. I've spent hours trying to figure out why I was getting errors when posting JSON data to a .NET Web API service. Your solution solved it for me.

–

Such an easy work around! Thanks, this was driving me crazy, the server side of things for me is a node.js express stack and bodyPraser.json() doesn't work with url encoded jsons...

–

Dear Barbara, another year has passed and unsuspecting Unity users are still being baffled by 415 Unsupported Media Type responses. It makes no sense to me why, in the json world we live in, when you already have multiple overloads for form data, that a string argument overload would assume application/x-www-form-urlencoded.

–

Thank you so much man. I have spend all f*cking day to solve this problem, and at the end I found your answer.

–