Hi all,
I am downloading a file from a web site using GetHTTPFile. The process appears to work ok and the file is transferred but the downloaded file is empty.. 0 bytes!
I am saving the file with the same name as the one downloaded.
Any ideas, anyone else had this issue? Here is my simple code:
http_id = CreateHTTPConnection()
SetHTTPHost(http_id,"www.mysite.co.uk/test",0)
If GetHTTPFile(http_id,"stockmastertab.txt","stockmastertab.txt") = 1
While GetHTTPFileComplete(http_id) = 0
prog# = GetHTTPFileProgress(http_id)
print(str(prog#))
sync()
Endwhile
Else
While GetPointerPressed() <> 1
Print("FILE COULD NOT BE LOCATED")
sync()
Endwhile
Endif