Pause/resume download

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
ar-s
Enthusiast
Enthusiast
Posts: 340
Joined: Sat Oct 06, 2007 11:20 pm
Location: France

Pause/resume download

Post by ar-s »

Not being able to pause and resume a download is sorely missed.

Maybe with
fileWeight = filesize(filename$)

Code: Select all

ReceiveHTTP[b]Resume[/b]File("http://www.purebasic.com/xxxx", filename$, fileWeight, #PB_HTTP_Asynchronous)
Httprequest should be able to use the header range information.
ex range bytes=xxx-
~Ar-S~
My Image Hoster for PB users
My webSite (french) with PB apps : LDVMULTIMEDIA
PB - 3.x / 5.7x / 6 - W11 x64 - Ryzen 7 3700x / #Rpi4

Code: Select all

r3p347 : 7ry : un71l d0n3 = 1