cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Upload to SFTP, novice question

From: Wei Weng <wweng_at_acedsl.com>
Date: Sat, 13 Sep 2008 18:57:59 -0400

Michael Masin wrote:
> 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
>
>
>
>
Dear Michael,

Is there a CURLOPT_VERBOSE setting in PERL:libcurl that you can turn on to see
more detailed message exchange between client and server?

Thanks
Wei
Received on 2008-09-14