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
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
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)