Re: [PATCH v2] http.c: use CURLOPT_RANGE for range requests
- From
Jeff King <peff@peff.net>
- Date
- Nov 2, 2015, 01:51 UTC
- Message-ID
- <20151102015157.GA25597@sigill.intra.peff.net>
- In-Reply-To
- <alpine.DEB.2.11.1511012359150.24283@tvnag.unkk.fr>
On Mon, Nov 02, 2015 at 12:00:42AM +0100, Daniel Stenberg wrote:
Show 9 quoted lines
> On Fri, 30 Oct 2015, Jeff King wrote: > > >The goal makes sense. Why weren't we using CURLOPT_RANGE before? Did it > >not exist (or otherwise have limitations) in 2005, and if so, when did it > >become usable? Do we need to protect this with an #ifdef for the curl > >version? > > CURLOPT_RANGE existed already in the first libcurl release: version 7.1, > relased in August 2000.
Ah, thanks. I guess we don't have to worry about that, then.
While I have your attention, Daniel, am I correct in assuming that performing a second unrelated request with the same CURL object will need an explicit:
curl_easy_setopt(curl, CURLOPT_RANGE, NULL);
to avoid using the range twice?
-Peff