cURL / Mailing Lists / curl-library / Single Mail


Re: Problem downloading with 7.10.5

From: Ben <>
Date: Fri, 30 Sep 2005 10:54:04 -0400 (EDT)

Ok after walking down through the code a little I believe I have found and corrected the problem with 7.10.5 and downloading from apache with http 1.1. I'm obviously not going to submit a patch since this outdated, but if anyone else runs into this problem and they need to us an older version of libcurl like I do this may be helpful. In the file transfer.c, near line 611, you will see that there are catches for http 1.0 and the connection message "closed" and "keep-alive". Just below this on line 621 there is a check for "closed" in the http 1.1 area, but there is nothing listed for a "keep-alive" return. So by adding something like this below that else if block:
else if (Curl_compareheader(k->p, "Connection:", "keep-alive"))
     conn->bits.close = FALSE;
that should resolve any problems.

Your Friend,
Before you get led astray. Check those new "virus" emails to make sure you aren't being used.

Join Excite! -
The most personalized portal on the Web!
Received on 2005-09-30