cURL / Mailing Lists / curl-library / Single Mail

curl-library

Upload to SFTP, novice question

From: Michael Masin <mmasin_at_atstuff.com>
Date: Sat, 13 Sep 2008 08:44:36 -0400

Hello,

This is my first time using libcurl (PERL) to upload and I'm missing
something obvious. This code:

$curl->setopt(CURLOPT_INFILE, *FH);
$curl->setopt(CURLOPT_FTP_SSL, 1);
$curl->setopt(CURLOPT_URL, $url);
$curl->setopt(CURLOPT_USERPWD, $login);
$curl->setopt(CURLOPT_TRANSFERTEXT, 1);
$curl->setopt(CURLOPT_UPLOAD, 1);
$curl->perform();

waits input on STDIN. After entry and an EOT, the keyed data is uploaded to
the correct file on the remote.

What am I doing wrong?

Thank you for your help!
m2
Received on 2008-09-13