Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use the IntGetFile function to download files.
#4
Thanks for your help.
The code below works, but it doesn't show the download progress.
How can reuse the progress bar code below?
`SetProgressDialog(dlg); SetProgressCallback(fa fparam)`

Function httpDownload_T
Code:
Copy      Help
typelib WinHttp {662901FC-6951-4854-9EB2-D9A2570F2B2E} 5.1
WinHttp.WinHttpRequest r._create

str url="https://dlink.host/1drv/aHR0cHM6Ly8xZHJ2Lm1zL3UvcyFBZ204d3BjSVhDanNnNHRuV2VyWDNxWk9BM0JBcUE.zip"
str tempFile=F"$desktop$\t.jpg"
r.Open("GET" url)
r.Send()
if(r.Status!=200) ret

ARRAY(byte) a=r.ResponseBody
str s.fromn(&a[0] a.len)

s.setfile(tempFile)


Messages In This Thread
RE: Use the IntGetFile function to download files. - by Davider - 06-02-2025, 07:53 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)