This is inducable in 7.24.0; following commands replicate it.
rm linux-3.2.2.tar.bz2
curl --output linux-3.2.2.tar.bz2 http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.2.2.tar.bz2 && \
curl --output linux-3.2.2.tar.bz2 http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.2.2.tar.bz2 -C -
The returned headers are 416; specifically, the file is completed. Curl however does not handle it correctly, instead assuming resume isn't possible.
I don't understand. Can you please add the exact headers this server returns for the command lines you run to illustrate how curl does it wrong? 416 is quite explicitly about when the range request cannot be satisfied.
Thanks for reporting this issue and helping us improve curl and libcurl.
We're awaiting feedback in this issue. Due to this, I have set the state of this issue to pending and it will automatically get closed later on unless we get further info.
Please consider answering the outstanding questions or providing the missing info so that we can proceed to resolve this issue!