Does WWWForm / WWW work on the iPhone?

I have the following in Unity:

{

_form = new WWWForm();
_form.AddField(“X_TEST”, “test”);
_www = new WWW(“http://webserver.com/test.php”, _form.data);

}

And the following on the server side:

{

if (!isset($SERVER['HTTP’.‘X_TEST’]))
die();

}

The variable is never set. The call is made from Unity (it gets to the PHP file) but the HTTP_X_TEST is not present.

Thanks for any help,

Henrik

Hi,
have you double checked your server side script with regular browser?

I guess you should check form variables in this way:

$_POST['X_TEST'];

Yes, use _POST or _REQUEST instead of $_SERVER. The WWW stuff very definitely works in Unity iPhone.