Changeset 14920 in josm
- Timestamp:
- 2019-03-23T16:38:45+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/TestHTTPS.pl
r14919 r14920 33 33 for my $e ($xpc->findnodes(".//j:*", $entry)) 34 34 { 35 if($e->textContent =~ /^http:\/\/(.*?) [\/:]/)35 if($e->textContent =~ /^http:\/\/(.*?)(:\d+)?[\/]/) 36 36 { 37 37 my $u = $1; … … 72 72 } 73 73 } 74 if($line =~ /http:\/\/(.*?) [\/:]/)74 if($line =~ /http:\/\/(.*?)(:\d+)?[\/]/) 75 75 { 76 76 $urls{$1}{$name}++; … … 93 93 94 94 open OUTFILE,">","josm_https.txt" or die "Could not open output file"; 95 open OUTFILENH,">","josm_no_https.txt" or die "Could not open no-https output file"; 95 96 96 97 sub doprint($) … … 150 151 doprint "* $url [$code $mess]: $i\n"; 151 152 }; 152 if($@ && $@ !~ "(--Alarm--|Connection refused)")153 if($@) 153 154 { 154 my $e = $@; 155 my $e = $@||""; 155 156 $e =~ s/[\r\n]//g; 156 157 $e =~ s/ at scripts\/TestHTTPS.pl .*//; 157 doprint "* $url [Error $e] :$i\n"; 158 if($@ !~ "(--Alarm--|Connection refused)") 159 { 160 doprint "* $url [Error $e] :$i\n"; 161 } 162 elsif($@) 163 { 164 print OUTFILENH "* $url [$e] :$i\n"; 165 } 158 166 } 159 167 }
Note:
See TracChangeset
for help on using the changeset viewer.