- Home /
WWW 3.5 500 Internal Server Error
I use this code in the 3.4 without any problems. Now updating to 3.5 it gives this error "500 Internal Error". As it worked on 3.4 I don't think is a problem with the PHP code. What changed to the WWW class that could give this error?
var URLLogin : String = "http://xxx.xxx.x.x/example.php";
var form = new WWWForm();
form.AddField( "usuario",usuario);
form.AddField( "senha",senha);
getLogin = WWW(URLLogin, form);
yield getLogin;
if (getLogin.error != null)
{
print(getLogin.error);
}
else
{
Debug.Log(getLogin.text);
}
Try removing all the dynamic typing. $$anonymous$$ake sure you explicitly state what types all yor variables are. While I can't see how this would solve the problem (to be honset) as a general rule of thumb it's a good thing to do.
This doesn't solve the problem ............
Have tried this code on my server but still I am getting error while upload array using playmaker arraymaker with easy save 2 ?
did anyone find the perfect solution yet ?
Answer by Rabbit-Stew-dio · Mar 12, 2012 at 09:18 PM
A 5xx HTTP-Error code indicates that there is a problem on the server, not on the client. So why don't you check your server's logs? They should tell you what is going wrong here.
I found the problem was in the PHP script. It was a line that unity didn't use for the PHP that was written wrong. Before on the 3.4 it didn't matter, but now Unity 3.5 it doesn't allow any errors.
Answer by pipiroo6 · Sep 27, 2013 at 10:21 PM
I also has the 500 internal server error, but I was no able to modify the PHP.ini or the Apache configuration. Finally I fix it creating a .htaccess file in the folder where my upload.php is located. With the following instructions:
####################################################
<IfModule mod_security.c>
<Files upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>
#####################################################
Your answer
Follow this Question
Related Questions
WWW Flash player with Unity 3.5 1 Answer
What kind of error handling does the WWW class have? 1 Answer
Loading text from web or RSS using WWW class 1 Answer
Extra WWW download statistics? 3 Answers
Adding data to a set of transforms 1 Answer