Hey all, I was recently working on a game of mine that requires a registration to get in & play, but I'm having a problem. I need have the game be able to detect a 404 error when it is trying to download a file, without actually crashing MMF. I've tried SupaSupa Download, WebGrab, & the FTP object, but none of them will give me the error straight up, they just crash MMF as a sign of affection to me.
Anyone have any ideas of how I can do this? Even if it requires using a separate extension, because atleast then I can use that separate extension to check for a 404 error, then use yes or no, to decide if I want to deliver that link to the extension. Sort of like a way to filter out the good from the bad.
Pete Nattress Cheesy Bits img src/uploads/sccheesegif
Registered 23/09/2002
Points 4811
12th January, 2006 at 17:13:41 -
I think you can do this with MooSock. I was using it to make an MSN messenger clone, and if memory serves it can retrieve HTTP headers (obviously you'd look for 40*), but I ain't used it for years so I'm not sure.
I could give MooSock a shot, but if this would be the problem I need to use, would anyone have any idea on how I would do it? I have no experence with MooSock.
@RapidFlash: Yeah tere sorta is (I did something with this a while back) if it si your own page it is easy, just put a unique thingy around what you want (say... <RAWR>variablepoo<RAWR> note the lack of a /) then use the string parser to parse it by <RAWR> and look at the appropriate element for your variables. If it aint your page just look for something that can stand in, say a bit of html which is ALWAYS before what you want, and always after (they dont have to be the same, string parser can have multiple separator thingies
hope my lack of memory at names of things doesnt confuse it to much
Twas brillig, and the slivey toves
Did gyre and gimble in the wabe,
All mimsy were the borogroves,
And the momewraths outgrabe.