libwww-curl-perl doesn't support scp

Stig Thormodsrud stig at vyatta.com
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 test.pl
#!/usr/bin/perl

use WWW::Curl::Easy;

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

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

vyatta at R1:~$ ./test.pl tftp://phuket/stig/sample
This is a sample test.
OK
vyatta at R1:~$ ./test.pl 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?

stig



More information about the pkg-perl-maintainers mailing list