cURL / Mailing Lists / curl-library / Single Mail

curl-library

scp and unknown upload length

From: Maule Mark <mark_maule_at_yahoo.com>
Date: Mon, 28 Nov 2011 06:28:28 -0800 (PST)

Hi all: I've got a little uploader program which reads from stdin and uploads to a host using libcurl.  I'm currently using ftp: as the transport and it works great.  However, not all of our upload targets enable ftp service, so I'd prefer to use scp:.  Is is possible to upload a file of unknown length with the scp: service?  If I set CURLOPT_INFILESIZE to some large value and transfer less than that, will things work out okay? thanks Mark

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-11-28