Changeset 14619 in josm for trunk/scripts
- Timestamp:
- 2018-12-31T14:51:46+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/TestHTTPS.pl
r14444 r14619 10 10 11 11 my %known = map {$_ => 1} qw( 12 ge.ch13 gis.mapa.lodz.pl14 osmdata.asitvd.ch15 12 siglon.londrina.pr.gov.br 16 13 tiles.itoworld.com 17 14 tms.cadastre.openstreetmap.fr 18 wms.openstreetmap.de19 15 www.jgoodies.com 20 www.osm-tools.org21 16 zibi.openstreetmap.org.pl 22 17 ); … … 72 67 print "Options: PLUGIN STYLE RULE PRESET MAP GETPLUGIN GETSTYLE GETRULE GETPRESET GETMAP LOCAL\n" if !@ARGV; 73 68 69 open OUTFILE,">>","josm_https.txt" or die "Could not open output file"; 70 71 sub doprint($) 72 { 73 print OUTFILE $_[0]; 74 print $_[0]; 75 } 76 74 77 my $local = 0; 75 78 for my $ARG (@ARGV) … … 93 96 if($local) # skip test 94 97 { 95 print "* ".($known{$url} ? "~~" : "")."$url:$i\n";98 doprint "* ".($known{$url} ? "~~" : "")."$url:$i\n"; 96 99 next; 97 100 } … … 105 108 my($code, $mess, %h) = $s->read_response_headers; 106 109 alarm(0); 107 print "* ".($known{$url} ? "~~" : "")."$url [$code $mess]: $i\n";110 doprint "* ".($known{$url} ? "~~" : "")."$url [$code $mess]: $i\n"; 108 111 }; 109 112 if($@ && $@ !~ "(--Alarm--|Connection refused)") … … 112 115 $e =~ s/[\r\n]//g; 113 116 $e =~ s/ at scripts\/TestHTTPS.pl .*//; 114 print "* ".($known{$url} ? "~~" : "")."$url [Error $e] :$i\n";117 doprint "* ".($known{$url} ? "~~" : "")."$url [Error $e] :$i\n"; 115 118 } 116 119 }
Note:
See TracChangeset
for help on using the changeset viewer.