cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Losing a byte with 7.10.5

From: Ufuk Kayserilioglu <groups_at_paralaus.com>
Date: Tue, 05 Aug 2003 19:41:41 +0300

Hi Ben,

This just a stab in the dark but I have noticed the line:

curl_easy_setopt(curl, CURLOPT_RESUME_FROM, resume);

amongst your options. Is the variable "resume" set to 1 by any chance?
That option is expecting (from the docs):

"... the offset in num­ber of bytes that you want the transfer to start
from."

It is not a switch that turns resume on/off. Thus, that could be the 1
byte you are missing (from the head of the file).

Sincerely,

Ufuk

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
Received on 2003-08-22