File: 03_yahoo_com.t

package info (click to toggle)
libfurl-perl 3.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 668 kB
  • sloc: perl: 2,186; makefile: 5; sh: 1
file content (25 lines) | stat: -rw-r--r-- 422 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use strict;
use warnings;
use utf8;
use FindBin;
use lib "$FindBin::Bin/../..";
use t::Util;
use Test::More;
use Furl;

plan skip_all => 'SSL cert error' if $ENV{TRAVIS};

skip_if_offline();

my $url = 'http://www.yahoo.com/';

my $furl = Furl->new();
$furl->env_proxy();
for(1 .. 2) {
    note "getting";
    my $res = $furl->get($url);
    note "done";
    ok $res->is_success or die $res->status_line;
}

done_testing;