Hi all
We used to use v5.6.1f where everything worked great. But after updating to v2017.1, the www call, is being rejected by the server with a “406 Not Acceptable” error.
We have tried to remove the security filter from the webserver thrugh the .htaccess file (even though this is not good manner). This removed the “406 Not Acceptable” error, but still no response was collected from the webserver.
Anyone who has an idea on what could be wrong? Do we need to add a header when doing the call to the web server? If so, how can we do that?
It must be mentioned, that no changes has been made to the webserver or the
PHP script which is being called from
the www!
Here is the code sample, which used to work in the previous version of Unity
IEnumerator LoadUserInfoRoutine() {
WWWForm form = new WWWForm ();
form.AddField ("unity_security", mySecurityCode);
form.AddField ("unity_method", "connect");
WWW www = new WWW(myURL, form);
yield return www;
if(www.error != null) {
Debug.Log (www.error);
} else {
response = www.text;
}
}