diff options
Diffstat (limited to 'docs/libcurl/opts/CURLOPT_MAXFILESIZE.3')
-rw-r--r-- | docs/libcurl/opts/CURLOPT_MAXFILESIZE.3 | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/docs/libcurl/opts/CURLOPT_MAXFILESIZE.3 b/docs/libcurl/opts/CURLOPT_MAXFILESIZE.3 index ab2ae4eab..37a2201df 100644 --- a/docs/libcurl/opts/CURLOPT_MAXFILESIZE.3 +++ b/docs/libcurl/opts/CURLOPT_MAXFILESIZE.3 @@ -5,11 +5,11 @@ .\" * | (__| |_| | _ <| |___ .\" * \___|\___/|_| \_\_____| .\" * -.\" * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. +.\" * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al. .\" * .\" * This software is licensed as described in the file COPYING, which .\" * you should have received as part of this distribution. The terms -.\" * are also available at https://curl.haxx.se/docs/copyright.html. +.\" * are also available at https://curl.se/docs/copyright.html. .\" * .\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell .\" * copies of the Software, and permit persons to whom the Software is @@ -20,14 +20,16 @@ .\" * .\" ************************************************************************** .\" -.TH CURLOPT_MAXFILESIZE 3 "May 30, 2017" "libcurl 7.73.0" "curl_easy_setopt options" +.TH CURLOPT_MAXFILESIZE 3 "November 26, 2021" "libcurl 7.81.0" "curl_easy_setopt options" .SH NAME CURLOPT_MAXFILESIZE \- maximum file size allowed to download .SH SYNOPSIS +.nf #include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_MAXFILESIZE, long size); +.fi .SH DESCRIPTION Pass a long as parameter. This allows you to specify the maximum \fIsize\fP (in bytes) of a file to download. If the file requested is found larger than @@ -36,13 +38,13 @@ be returned. The file size is not always known prior to download, and for such files this option has no effect even if the file transfer ends up being larger than this -given limit. This concerns both FTP and HTTP transfers. +given limit. If you want a limit above 2GB, use \fICURLOPT_MAXFILESIZE_LARGE(3)\fP. .SH DEFAULT None .SH PROTOCOLS -FTP and HTTP +FTP, HTTP and MQTT .SH EXAMPLE .nf CURL *curl = curl_easy_init(); |