cURL / Mailing Lists / curl-library / Single Mail


Can I send only part of a file?

From: Saqib Ali <>
Date: Mon, 9 May 2011 10:26:52 -0400

I'm using Curl version 7.21.5 to do SFTP uploads from a Solaris 10 box.

I have a relatively large file that I'm interested in transmitting (Approx
10 MB). But the file is structured such that the information I'm really
interested in transmitting is at the beginning of the file.

Is it possible for me to instruct Curl to transmit only the first X bytes of
a file?
Could I accomplish this simply by setting the CURLOPT_INFILESIZE parameter
to X?

- Saqib

List admin:
Received on 2011-05-09