curl-library
Re: Upload to SFTP, novice question
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Sat, 13 Sep 2008 12:16:01 -0700
Date: Sat, 13 Sep 2008 12:16:01 -0700
On Sat, Sep 13, 2008 at 08:44:36AM -0400, Michael Masin wrote:
> 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?
Could it be that something is waiting for a password to be entered from the
console?
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2008-09-13