curl-library
maxdownload hack & diff
Date: Sat, 6 Oct 2001 22:10:30 -0700 (PDT)
Hi all,
After trying a few less invasive efforts, I ended up hacking libcurl to
create a CURLOPT_MAXDOWNLOAD option to allow for a hard download size limit.
If this option is used, the download will terminate (gracefully) if it hits
the limit. The attempt has been made to override the Range: option in case of
contentlength > maxdownload limit to minimize impact on HTTP server.
If contentlength < maxdownload limit then it behaves as always.
Changes were applied to 7.9pre3.
gdiff -u is attached.
Comments? Is this worth incorporating into the source tree?
Thanks,
Lucas.
__________________________________________________
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
- application/x-unknown attachment: libcurl.gdiff