0 Replies - 622 Views - Last Post: 23 March 2010 - 03:44 PM Rate Topic: -----

#1 Ghirkin  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 14
  • Joined: 18-December 08

oHTTP not 'refreshing'

Posted 23 March 2010 - 03:44 PM

I am making an xbox live friends list program on the pc, but have hit a snag - when refreshing the information for the friends the information doesn't refresh - it stays the same. I think i've narrowed it down to :
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. :blink:
Is this a bug in that function or am I missing somthing here?

Edit:
URLDownloadToFile 0, "http://xboxapi.duncanmackenzie.net/gamertag.ashx?GamerTag=" & Replace(Gamertag, " ", "%20"), App.Path & "\resources\" & Gamertag & ".txt", 0, 0

also yields same results :/

Edit:
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: Attached File  Project.zip (8.52K)
Number of downloads: 84

This post has been edited by Ghirkin: 23 March 2010 - 03:57 PM


Is This A Good Question/Topic? 0
  • +

Page 1 of 1