At 12/20/07 12:00 AM, Snubby wrote:
For some reason when I do this it sends it using GET (the variables are visible in the address). Anybody know how I can send it using POST?
var highscoreObject:LoadVars = new LoadVars ();
highscoreObject.nameSend = "Name";
highscoreObject.scoreSend = 26;
highscoreObject.send ("http://www.snubbyland.com/highscores_t heWorldsHardestGame.php", "_blank", "POST");
You will need to change the send thing to sendandLoad and replace "_blank" with an loadVars instance to receive the returned data (if there is any). I think the problem is the "_blank" target thb (that will cause the request to be sent via the browser), but most scripts will send something back even if it just tells you if it was successful. If you want to show the high scores after the new score has been added, wait for the return stuffs and then just open the page using the normal getURL function.
I don't know how anybody can say that faking post headers is just as easy as typing in a url - that's just rubbish. Yes, it's not hard to fake post header, but the fact that the topic starter knew how to cheat via the url, but not post then that kinda proves the point. In fact ask anybody on this forum, the majority won't know how to fake post headers or don't have the software to do it - to cheat via the url just requires IE which is installed on nearly all windows machines.