curl-library
Re: scp and unknown upload length
Date: Mon, 28 Nov 2011 19:50:35 +0100 (CET)
On Mon, 28 Nov 2011, Maule Mark wrote:
> 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?
I don't remember exactly but why don't you try it and see for yourself?
-- / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-11-28