File: 07errbuf.t

package info (click to toggle)
libwww-curl-perl 4.17-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 584 kB
  • sloc: perl: 1,909; makefile: 5
file content (9 lines) | stat: -rw-r--r-- 205 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
use strict;
use Test::Simple tests => 1;
use WWW::Curl::Easy;

my $curl = new WWW::Curl::Easy;
$curl->setopt( CURLOPT_URL, 'badprotocol://127.0.0.1:2' );
$curl->perform;
my $err = $curl->errbuf;
ok($err);