CURLOPT_MAXFILESIZE (3) Linux Manual Page
CURLOPT_MAXFILESIZE – maximum file size allowed to download Synopsis#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_MAXFILESIZE, long size); DescriptionPass a long as parameter. This allows you to specify the maximum size (in bytes) of a file to download. If the file requested is found larger than this value, the transfer will not start and CURLE_FILESIZE_EXCEEDED will be…
