cURL / Mailing Lists / curl-library / Single Mail

curl-library

Can I send only part of a file?

From: Saqib Ali <saqib.ali.75_at_gmail.com>
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: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-09