curl-library
Problem using redirect and resume together
From: Chih-Chung Chang <jochang_at_gmail.com>
Date: Wed, 6 Oct 2004 14:02:24 +0800
Date: Wed, 6 Oct 2004 14:02:24 +0800
Hi,
My code does:
curl_easy_setopt(curl, CURLOPT_URL, url);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
curl_easy_setopt(curl, CURLOPT_RESUME_FROM, offset);
res = curl_easy_perform(curl);
I found that if the url is redirected, the error code 33
(CURLE_HTTP_RANGE_ERROR) is returned. But if the
resume option is not specified, it works perfectly. Setting
CURLOPT_RANGE instead of CURLOPT_RESUME_FROM
also works. I am using version 7.12.1.
Thanks,
Chih-Chung Chang
Received on 2004-10-06