projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allow sh/qrz to use a http proxy
[spider.git]
/
cmd
/
show
/
qrz.pl
diff --git
a/cmd/show/qrz.pl
b/cmd/show/qrz.pl
index c20be45deeb06f2c9f636145d3daee4ad8997ed6..0d6e2d487d0bf7ab4f572b63b6a3911c817cf328 100644
(file)
--- a/
cmd/show/qrz.pl
+++ b/
cmd/show/qrz.pl
@@
-13,17
+13,21
@@
my @out;
return (1, $self->msg('e24')) unless $Internet::allow;
return (1, "SHOW/QRZ <callsign>, e.g. SH/QRZ g1tlh") unless @list;
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 || 'qrz.com';
+my $port = $Internet::http_proxy_port || 80;
+my $url = '';
+$url = 'http://qrz.com' if $Internet::http_proxy;
use Net::Telnet;
my $t = new Net::Telnet;
foreach $l (@list) {
use Net::Telnet;
my $t = new Net::Telnet;
foreach $l (@list) {
- $t->open(Host =>
"qrz.com"
,
- Port =>
80
,
+ $t->open(Host =>
$target
,
+ Port =>
$port
,
Timeout => 15);
if ($t) {
Timeout => 15);
if ($t) {
- my $s = "GET /dxcluster.cgi?callsign=$l\&uid=$Internet::qrz_uid\&pw=$Internet::qrz_pw HTTP/1.0\n\n";
+ my $s = "GET
$url
/dxcluster.cgi?callsign=$l\&uid=$Internet::qrz_uid\&pw=$Internet::qrz_pw HTTP/1.0\n\n";
# print $s;
$t->print($s);
Log('call', "$call: show/qrz \U$l");
# print $s;
$t->print($s);
Log('call', "$call: show/qrz \U$l");