7 use Net::SSLeay::Handle;
11 banking.wellsfargo.com
15 @sites = split(/:/, $ENV{SSLEAY_SITES}) if exists $ENV{SSLEAY_SITES};
17 plan tests => scalar @sites * 6;
20 plan skip_all => 'No external hosts specified for SSL testing';
24 for my $site (@sites) {
28 tie(*$ssl, 'Net::SSLeay::Handle', $site, 443);
31 skip('could not connect', 2) if $@;
34 print $ssl "GET / HTTP/1.0\r\n\r\n";
35 my $resp = do { local $/ = undef; <$ssl> };
37 like( $resp, qr/^HTTP\/1/, 'response' );
43 for (my $i = 0; $i < scalar @sites; $i++) {
47 tie(*$ssl, 'Net::SSLeay::Handle', $sites[$i], 443);
50 skip('could not connect', 2) if $@;
54 ok( $ssl, 'got handle' );
58 for my $sock (@sock) {
60 skip('not connected', 2) unless defined $sock;
63 print $sock "GET / HTTP/1.0\r\n\r\n";
65 my $resp = do { local $/ = undef; <$sock> };
66 like( $resp, qr/^HTTP\/1/, 'response' );