Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
20
Task/HTTP/Liberty-BASIC/http.basic
Normal file
20
Task/HTTP/Liberty-BASIC/http.basic
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
result = DownloadToFile( "http://rosettacode.org/wiki/Main_Page", "in.html")
|
||||
timer 2000, [on]
|
||||
wait
|
||||
[on]
|
||||
timer 0
|
||||
if result <> 0 then print "Error downloading."
|
||||
|
||||
end
|
||||
|
||||
Function DownloadToFile( urlfile$, localfile$)
|
||||
open "URLmon" for dll as #url
|
||||
calldll #url, "URLDownloadToFileA",_
|
||||
0 as long,_ 'null
|
||||
urlfile$ as ptr,_ 'url to download
|
||||
localfile$ as ptr,_ 'save file name
|
||||
0 as long,_ 'reserved, must be 0
|
||||
0 as long,_ 'callback address, can be 0
|
||||
DownloadToFile as ulong '0=success
|
||||
close #url
|
||||
end function
|
||||
Loading…
Add table
Add a link
Reference in a new issue