Hi!
I have simple example for web player.
public void OnButtonClick() {
StartCoroutine(Request());
}
IEnumerator Request() {
WWWForm form = new WWWForm();
form.AddField("param", 0);
WWW www = new WWW("http://www.domain.com/query.php", form);
yield return www;
Debug.Log(www.error);
Debug.Log(www.text);
}
This code worked correctly in 4.6.x (for all browsers). But now there are some issues:
- It’s ok in Google Chrome
- I get an www.error in Firefox: Failed to downloading http://www.domain.com/query.php
- There is no www.error in Safari, but PHP-script says that he doesn’t receive any POST params.
If I change request to GET params, it’s all ok:
WWW www = new WWW("http://www.domain.com/query.php?param=0");
What’s wrong with POST?
Thanks!