I remmed out the part in that code that removed the html files, looked in them, and noticed this: HTTP/1.1 404 Not found Connection: Close Content-length: 0
Humor me and try removing the "http://www.runescape.com" part of the GET line leaving just "/hiscoreuser.cgi?category=". I once had something like that on another script and I think that fixed it..