cURL / Mailing Lists / curl-library / Single Mail

curl-library

questions about http resuming download

From: <ianguo_at_linpus.com>
Date: Tue, 09 Sep 2008 10:41:28 +0800

Hi all,

Could I ask 2 questions:
1. how to get the size of a file which I want to download from server
using http?
2. I use parameter CURLOPT_RESUME_FROM to perform resuming download
(http), but when the resuming point is equal to the size of file in
server(that means the file is already downloaded successfully), server
will return error (error code:CURLE_PARTIAL_FILE 18).How to avoid or
deal with this error to make resuming download OK?

Thank you!

Best Regards,
Ian
Received on 2008-09-09