We are receiving a NotSupportedException in response to both UploadData and UploadDataAsync methods of WebClient, passing an array of bytes to the web server hosting the webplayer version of our game.
e.g.
myWebClient.UploadDataAsync(uri, bytesData);
From the compatability page, both UploadData and UploadDataAsync are supported in Webplayer.
I can call the website outside of Unity and no errors receiving the byte data.
Tried placing a crossdomain file there though it should not be needed and it had no effect.
For anyone who might be heading down this path, you can stop now and head a different direction.
Here is what we were informed by Unity Support:
"While the method signature of this API may be available in the page, the actual operation may not work as the page may lend belief to.
I would recommend that you seek an alternative approach to solving your problem."
When I read that it means the documentation is wrong and we are S.O.L.; NOT cool.
We tested in Editor, Android and then desktop - all worked. So we procedded with our design. We expected that since Web player was listed as supported it would work as well. Not so, as we found out when we deployed to our web server. I guess, vigilans non cadit…though it’s hard not to falter when you get bad documentation.