libwww-curl-perl doesn't support scp

Stig Thormodsrud stig at
Sun Nov 7 20:06:18 UTC 2010

I'm trying to use libwww-curl-perl from squeeze, but it seems scp doesn't
work even though the underlying libcurl does support it.  

For example:

vyatta at R1:~$ cat

use WWW::Curl::Easy;

$curl = new WWW::Curl::Easy;
$curl->setopt(CURLOPT_URL, $ARGV[0]);
$rc = $curl->perform;

if ($rc) {
   print "Failed: " . $curl->strerror($rc) . "\n";
} else {
   print "OK\n";

vyatta at R1:~$ ./ tftp://phuket/stig/sample
This is a sample test.
vyatta at R1:~$ ./ scp://phuket/stig/sample
Failed: Unsupported protocol

It seems the problem is that the debian/control file has a Build-Depends
of libcurl3-gnutls.  If I change it to libcurl4-openssl-dev and rebuild -
then it works.

Is the lack of scp support intentional or an oversight?


More information about the pkg-perl-maintainers mailing list