Hello all!
I can’t for the life of me figure out what I’m supposed to do to get POST functions to work when I build for webplayer. There have been several different posts from people with the same problem, but seemingly no working solutions in them.
The skinny:
- Everything works fine in editor/windows build.
- I use the form about as standard-ly as you can imagine.
- My self-made debug class returns an empty string (as opposed to an error) when trying to print the www’s text (in the webplayer).
- I’m querying the same domain that the game is hosted on (www.myDomainName.com/myPhpScript.php, where the game is at [MyDomainName.com is for sale | www.brandforce.com(.html](MyDomainName.com is for sale | www.brandforce.com & .unity3d)).
I suspect there’s some server setting (mine’s with dreamhost) or header… thing that I’m unaware of, but I’m not sure where to look to even find out what. At one point I threw in a
header.Add("Access-Control-Allow-Credentials", "true");
header.Add("Access-Control-Allow-Headers", "Accept");
header.Add("Access-Control-Allow-Methods", "POST");
header.Add("Access-Control-Allow-Origin", "*");
for giggles, but no joy.
If anyone’s had this problem or knows where to start looking to solve it, I greatly appreciate the advice
Thanks!