From ce5db9a86ea1508b0caaeec38adc5397e390dc3e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 17 Oct 2003 13:11:00 +0000 Subject: Dominick Meglio implemented CURLOPT_MAXFILESIZE and --max-filesize. --- include/curl/curl.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/curl/curl.h b/include/curl/curl.h index 0f9e38b5b..557c942a5 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -218,6 +218,7 @@ typedef enum { CURLE_SSL_CACERT, /* 60 - problem with the CA cert (path?) */ CURLE_BAD_CONTENT_ENCODING, /* 61 - Unrecognized transfer encoding */ CURLE_LDAP_INVALID_URL, /* 62 - Invalid LDAP URL */ + CURLE_FILESIZE_EXCEEDED, /* 63 - Maximum file size exceeded */ CURL_LAST /* never use! */ } CURLcode; @@ -689,6 +690,10 @@ typedef enum { affect on systems with support for more than one, i.e IPv4 _and_ IPv6. */ CINIT(IPRESOLVE, LONG, 113), + /* Set this option to limit the size of a file that will be downloaded from + an HTTP or FTP server. */ + CINIT(MAXFILESIZE, LONG, 114), + CURLOPT_LASTENTRY /* the last unused */ } CURLoption; -- cgit v1.2.3