Re: Continue Download C++ Implementation

2020-12-09 Thread Tomas Berger via curl-library
Just for closure, in-case anybody else get in my position, the answer to my issue, is found here https://stackoverflow.com/questions/15063985/opening-a-binary-output-file-stream-without-truncation (https://link.getmailspring.com/link/ee92048f-377c-4c04-9ae9-29ae9347f...@getmailspring.com/0?redi

Re: Continue Download C++ Implementation

2020-12-09 Thread Tomas Berger via curl-library
> First - flush & close your file. It's almost certainly buffered and not all > data may be actually written to disk when you invoke copy. I did actually close my failed after easy_perform returned, it just missed it when I copied to code. I did however try to flush the file. I tried after each w

Re: Continue Download C++ Implementation

2020-12-08 Thread Tomalak Geret'kal via curl-library
On 08/12/2020 15:49, Tomas Berger via curl-library wrote: > I have been trying to be able to continue a download from > a half finished state, my write function is rather simple, > but I have a couple of couts. > The idea is to download to a temporary file, and when the > download is complete copy,

Re: Continue Download C++ Implementation

2020-12-08 Thread Zakrzewski, Jakub via curl-library
> But the zip file can not be unzipped, and their sha256 sum is different, so > something went > wrong. > I assume I might have made an logical error, but I can see where. > I hope you guys can help me see where I have gone wrong. First - flush & close your file. It's almost certainly buffered a

Continue Download C++ Implementation

2020-12-08 Thread Tomas Berger via curl-library
I have been trying to be able to continue a download from a half finished state, my write function is rather simple, but I have a couple of couts. The idea is to download to a temporary file, and when the download is complete copy, and remove the tempfile Relying on CURLOPT_RESUME_FROM_LARGE to h