WWW request

Bonjour!

I am a bit fustrated by the content of documentation, but don’t feel offended by what I say. I remind that I am an absolute begginer attempting to use WWW request object. But, my requests fail. When I execute it from the Unity Debug mode (inside interface), it tells that the host is unreachable. (The url I request is a full absolute url like. http://www.google.fr/ It is the same when I execute it once compiled from my web browser.

Is it a matter of stuff like Flash’s sandbox? My code is pretty simple like:

var myForm:WWWForm = new WWWForm();
myForm.addField('text', 'Hello World!');

var request:WWW = new WWW('http://www.myhome.com/mypage.php', myForm);

yield request;

print (request.data);

Thank you for your answers or at least your attention!

OK guys if nobody answers me, it is alright. If my script was not working once on my web server that was a problem of permissions. Now I don’t know how it would be possible to test request from the Unity Interface with my absolute urls. But It won’t help me to sleep.

So have a nice day, greetings from Paris !

Unity always requires full urls, no problem on that end. (even a webplayer must use full urls, as the player is executed on the machine not the server)

But what I see in your code that might bite is the use of ’ ’ instead of " " which are used to define strings in .NET.