Hello. Can someone help? The code below downloads a file from my internet website and it works absolutely fine when I run it in AppGameKit, but when I export it as HTML5 and run it in my browser, the loop that waits for the response loops forever, the value of getHTTPResponseReady stays at -1. Can anyone tell me what I'm doing wrong?
if GetInternetState() =1
//set up web
http = CreateHTTPConnection()
SetHTTPHost(http, "www.cyadonia.co.uk", 0)
gethttpfile(http, "sitemap.xml", "data\sitemap.xml")
repeat
Sync()
print(str(GetHTTPResponseReady( http )))
until GetHTTPResponseReady( http ) = 1
CloseHTTPConnection(http)
DeleteHTTPConnection(http)
endif