Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

curlopt_maxfilesize(3) [mojave man page]

CURLOPT_MAXFILESIZE(3)					     curl_easy_setopt options					    CURLOPT_MAXFILESIZE(3)

NAME
CURLOPT_MAXFILESIZE - maximum file size allowed to download SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_MAXFILESIZE, long size); DESCRIPTION
Pass 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 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. If you want a limit above 2GB, use CURLOPT_MAXFILESIZE_LARGE(3). DEFAULT
None PROTOCOLS
FTP and HTTP EXAMPLE
TODO AVAILABILITY
Always RETURN VALUE
Returns CURLE_OK SEE ALSO
CURLOPT_MAXFILESIZE_LARGE(3), CURLOPT_MAX_RECV_SPEED_LARGE(3), libcurl 7.54.0 February 03, 2016 CURLOPT_MAXFILESIZE(3)

Check Out this Related Man Page

CURLOPT_NOBODY(3)					     curl_easy_setopt options						 CURLOPT_NOBODY(3)

NAME
CURLOPT_NOBODY - do the download request without getting the body SYNOPSIS
#include <curl/curl.h> CURLcode curl_easy_setopt(CURL *handle, CURLOPT_NOBODY, long opt); DESCRIPTION
A long parameter set to 1 tells libcurl to not include the body-part in the output when doing what would otherwise be a download. For HTTP(S), this makes libcurl do a HEAD request. For most other protocols it means just not asking to transfer the body data. Enabling this option means asking for a download but without a body. DEFAULT
0, the body is transferred PROTOCOLS
Most EXAMPLE
curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, "http://example.com"); /* get us the resource without a body! */ curl_easy_setopt(curl, CURLOPT_NOBODY, 1L); /* Perform the request */ curl_easy_perform(curl); } AVAILABILITY
Always RETURN VALUE
Returns CURLE_OK SEE ALSO
CURLOPT_HTTPGET(3), CURLOPT_POST(3), libcurl 7.54.0 February 03, 2016 CURLOPT_NOBODY(3)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

trying to download Fedora Core3 - help pls!

Hiya Guys, damn! Burn't off 4 CD - all bad.... what am I doing wrong???? Downloaded ISO images from 2 mirror sites so far.... Onto my Windows XP laptop at work (ie. thru firewall...) thru Internet Explorer - choosing the FTP:// sites I had 4 downloads going at once.... what am I... (7 Replies)
Discussion started by: marty 600
7 Replies

2. SuSE

When a FTP download is completed

I receive files by FTP in an input directory. Every 10 seconds a process checks if some new file has arrived to the input directory and then the process moves them to another directory to be read by a second process. The problem is that there is no way to know if the download has finished... (11 Replies)
Discussion started by: Javi
11 Replies

3. Programming

c++

hello guys i am new here i want to ask where i can download c, c++, and tc++ , thank you (6 Replies)
Discussion started by: faxreport
6 Replies

4. IP Networking

File transfer using HTTP

I have Apache running on a Solaris server. Does anyone know how I go about using HTTP for a file transfer ( or I guess more properly termed in HTTP as a document transfer ) ? I have a requirement that restricts my file transfer options to HTTP only ! Is there any changes I need to make to the... (10 Replies)
Discussion started by: jimthompson
10 Replies

5. UNIX for Dummies Questions & Answers

maximum tar file size?

Is there a reasonable maximum limit for tar file sizes? I want to transfer a pile of files from one server to another but have restricted means, so tarring them first will probably be best... but how big can I go - both for the file format itself and for the operating system (linux) to handle? ... (7 Replies)
Discussion started by: Bobby
7 Replies

6. Programming

Can't create file bigger than 2GB with my application

Hi, I've created a simple application that is supposed to fill up a file with messages up to the size I pass as parameter. The problem is that once the file reaches the 2GB size, it stops growing. The flow of the application, for what is worth, is as follows: while ( bytes written <... (7 Replies)
Discussion started by: emitrax
7 Replies

7. AIX

Tar files larger than 2GB

Hi, Does anyone know if it is possible to tar files larger than 2GB? The reason being is they want me to dump a single file (which is around 20GB) to a tape drive and they will restore it on a Solaris box. I know the tar have a limitation of 2GB so I am thinking of a way how to overcome this.... (11 Replies)
Discussion started by: depam
11 Replies

8. HP-UX

FTP file with ( ) + - in the filename

Hello, I wnat to transfer files of the following format: A20110711.1230+0300-1245+0300_BNC46(TEST).4609401144_AREA.xml.gz Unfortunatelly file transfer works only if aI transmit the files without: + - ( ) characters. However I can touch files that contains + - not () characters. Is... (6 Replies)
Discussion started by: drbiloukos
6 Replies

9. HP-UX

How to download HP-UX OS?

How to download HP-UX OS? I want to install Hp-UX OS for practicing commands and all. Which site can I use? Kindly help!! Thank you in advance!:o (7 Replies)
Discussion started by: manalisharmabe
7 Replies

10. Shell Programming and Scripting

Batch download

............. (9 Replies)
Discussion started by: hoo
9 Replies

11. Shell Programming and Scripting

Download the file

Hi!! I have to download one file from FTP on a daily basis but the file name not constant. Filename “BRAA.DAILY1.20120326.3456” BRAA.DAILY1. - constant 20120326 - system date 3456 - random number which will get change every day. Few sample file names - ... (7 Replies)
Discussion started by: rahul198228
7 Replies

12. Shell Programming and Scripting

FTP download using perl script

Need assistance I have a script which i can download the files from ftp server using perl . But i want to download multiple files at a time #!/usr/bin/perl -w use Net::FTP; $ftp = Net::FTP->new("ftp.ncdc.noaa.gov"); $ftp->login('username', 'password'); $ftp->cwd("<dir>");... (9 Replies)
Discussion started by: ajayram_arya
9 Replies

13. UNIX for Dummies Questions & Answers

How to download files matching pattern from FTP using CURL or WGET?

Hi, For an order I requested, the provider has uploaded a tar file in public FTP site which internally has tons of files (compressed) and I need to download files that follows particular pattern which would be few hundreds. Note: The order can't be requested for files that follows the... (7 Replies)
Discussion started by: Amalan
7 Replies

14. Shell Programming and Scripting

Verification on shell script

hello i have writing a shell script to download and run some packages the only way that i use to verify download pack is , limit users ip to download from main server, if wget can download file (verified) then script run by execute it sh pack76.sh else show and error (stupid solution ha?) ... (8 Replies)
Discussion started by: nimafire
8 Replies

15. Shell Programming and Scripting

FTP File download

Hi, I have few files at FTP location and have written a script to download the same from ftp based on the sysdate - 1, however with the below code I am unable to download the files from FTP. x=`TZ=CST+24 date +%Y%m%d` mget Daily_BIH_$x_NEW.tar.gz can anyone please help me in... (10 Replies)
Discussion started by: rramkrishnas
10 Replies