I use it all the time on a group of Android devices and they all work.
If the file already exists, it will not overwrite it. So if it exists, you have to delete it first.
I use an error routine to help me be sure that I've received a file:
http = CreateHTTPConnection()
SetHTTPTimeout( http, 5000 )
SetHTTPHost( http, newsMaster[hh].httpHost, 0 )
if getFileExists(newsMaster[hh].httpFile) //checking to see if the file exists on the local machine and then delete it if it does.
deleteFile(newsMaster[hh].httpFile)
endif
SendHTTPRequestASync( http, newsMaster[hh].httpFile )
dl$ ="."
//error trapping code to be sure the connection is opened
while GetHTTPResponseReady(http) = 0
if getRawKeyPressed(27) then end
error$ = "Line 1869"
if GetErrorOccurred() then gosub showError
dl$ = dl$ + dl$ // this just puts "....." on the screen while file is downloading.
if len(dl$) > 40 then dl$ = ""
Print("Checking Connection" + dl$ )
Sync()
endwhile
//end error trapping code to be sure the connection is opened
GetHTTPFile( http, newsMaster[hh].httpFile, newsMaster[hh].httpOutputFile )
weatherTimer# = timer() + 10
timeOutError = 0
timeOut$ = ""
dl$ = "."
//error trapping code to be sure file has been received
while GetHTTPFileComplete(http) = 0
if getRawKeyPressed(27) then end
error$ = "Line 1886"
if GetErrorOccurred() then gosub showError
dl$ = dl$ + dl$
if len(dl$) > 40 then dl$ = "" // this just puts "....." on the screen while file is downloading.
` print("httpFile " + newsMaster[hh].httpFile)
` print("httpFile " + newsMaster[hh].httpOutputFile)
Print("Getting News" + dl$ )
Sync()
endwhile
//end error trapping code to be sure file has been received
CloseHTTPConnection(http)
DeleteHTTPConnection(http)
//error display code
showError:
rem start
playSound(1)
setPrintColor(255,255,255)
while getPointerPressed() = 0
if getRawKeyPressed(27) then end
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print(" ")
print("Touch Screen To Continue")
print(error$)
print(GetLastError())
sync()
endwhile
setPrintColor(128,128,128)
rem end
return
//end error display code
I hope this helps.