WWW class

Is anyone else finding a really weird bug with the WWW. For example when I am posting something to my PHP script it only seems to work if I actually call the isDone method otherwise it just will not work.

WWW w = new WWW(“http://inanegames.ca/miniPutt/highscores.php?operation=ADD&tableName=BrickoutScores&playerScore=5000&playerName=TEST”);

w.isDone;

can’t be … but you potentially don’t wait long enough.

the standard way of doing it is adding a yield return w; after the WWW w = … line which means “we wait until the request has finished before we assume it did”

Can you give more information as to what specifically it means, syntactically?

I’m trying to get this to work in C#, and having some issues in the translation.

exactly what I said :slight_smile:

WWW request = new WWW("http://somewhere.com");
yield return request;

// now use request, not before