cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: http resume, libcurl ignoring the 206 status code.

From: Nathan E. Moore <nate_at_redtetrahedron.org>
Date: Sun, 04 Mar 2007 03:49:18 -0500

That patch does work. Unfortunately I had misdiagnosed my problem. My
problem is not with my code or curl, rather the webserver is sending a
response that has a extra blank line in it. I had thought it was odd that I
wasn't seeing a content-length, or content-type as well, as they and the
content-range header are all after the blank line.

Thanks for the help
Nathan Moore

--On Saturday, March 03, 2007 10:41 PM +0100 Daniel Stenberg
<daniel_at_haxx.se> wrote:

> How about this patch?
>
> --- lib/transfer.c 26 Feb 2007 04:24:29 -0000 1.339
> +++ lib/transfer.c 3 Mar 2007 21:47:05 -0000
> @@ -1147,7 +1147,7 @@
> k->ignorebody = TRUE;
> infof(data, "Ignoring the response-body\n");
> }
> - if (data->reqdata.resume_from && !k->content_range &&
> + if (data->reqdata.resume_from && (k->httpcode != 206) &&
> (data->set.httpreq==HTTPREQ_GET) &&
> !k->ignorebody) {
> /* we wanted to resume a download, although the server
> doesn't
Received on 2007-03-04