sSrcUrl = "http://xboxapi.duncanmackenzie.net/gamertag.ashx?GamerTag=" & Replace(Gamertag, " ", "%20") Set oHTTP = CreateObject("Microsoft.XMLHTTP") bGetAsAsync = False oHTTP.open "GET", sSrcUrl, bGetAsAsync oHTTP.send If oHTTP.Status <> 200 Then WScript.Echo "unexpected status = " & oHTTP.Status & vbCrLf & oHTTP.StatusText WScript.Quit End If Do PROFILEINFO = oHTTP.responseText Loop Until PROFILEINFO <> ""
being the problem. I've had a look at it and don't know where to begin to fix it. It seems that once it has retrieved somones info once, it will then keep returning the same info - ie. If you retrieved somone's info when they were online, and then retrieved it again after they went offline, the response would still be that they were online.
Is this a bug in that function or am I missing somthing here?
URLDownloadToFile 0, "http://xboxapi.duncanmackenzie.net/gamertag.ashx?GamerTag=" & Replace(Gamertag, " ", "%20"), App.Path & "\resources\" & Gamertag & ".txt", 0, 0
also yields same results
Clearing temporary internet files fix the issue completely - but I have to clear them every time I refresh - I'd like to avoid this if it's possible..
The code for what I already have is attached: Project.zip (8.52K)
Number of downloads: 86
This post has been edited by Ghirkin: 23 March 2010 - 03:57 PM