added show/425 command
[spider.git] / cmd / show / qrz.pl
index ad4fb7278382de2a93c841df0b50c2fbc8d4b329..ca1935a4c53dbe131e5bb5e4aade2a80d7b234cb 100644 (file)
@@ -15,10 +15,15 @@ my @out;
 
 return (1, $self->msg('e24')) unless $Internet::allow;
 return (1, "SHOW/QRZ <callsign>, e.g. SH/QRZ g1tlh") unless @list;
-my $target = $Internet::http_proxy || 'u2.qrz.com';
+#my $target = $Internet::http_proxy || 'www.qrz.com';
+#my $port = $Internet::http_proxy_port || 80;
+#my $url = '';
+#$url = 'http://www.qrz.com' if $Internet::http_proxy; 
+my $target = $Internet::http_proxy || $Internet::qrz_url || 'www.qrz.com';
 my $port = $Internet::http_proxy_port || 80;
 my $url = '';
-$url = 'http://u2.qrz.com' if $Internet::http_proxy; 
+$url = 'http://' . ($Internet::qrz_url || '$www.qrz.com') if $Internet::http_proxy;
+
 
 use Net::Telnet;
 
@@ -34,7 +39,7 @@ foreach $l (@list) {
        if (!$t || $@) {
                push @out, $self->msg('e18', 'QRZ.com');
        } else {
-               my $s = "GET $url/dxcluster.cgi?callsign=$l\&uid=$Internet::qrz_uid\&pw=$Internet::qrz_pw HTTP/1.0\n\n";
+               my $s = "GET $url/p/dxcluster.pl?callsign=$l\&username=$Internet::qrz_uid\&password=$Internet::qrz_pw HTTP/1.0\n\n";
                dbg($s) if isdbg('qrz');
                $t->print($s);
                Log('call', "$call: show/qrz \U$l");