X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fshow%2Fdb0sdx.pl;h=7e9496836e18c8eeaf93d7255d3c563db4a4bd69;hb=4c8be388424d403a33d72798b02e49c4f1bfd0ef;hp=4fab75b2be2edcc4507e4fe2d9f0532c16202dcb;hpb=cd651c730ce8a5078bf36d24a9d679dac8fc4a3b;p=spider.git diff --git a/cmd/show/db0sdx.pl b/cmd/show/db0sdx.pl index 4fab75b2..7e949683 100644 --- a/cmd/show/db0sdx.pl +++ b/cmd/show/db0sdx.pl @@ -2,6 +2,8 @@ # Query the DB0SDX QSL server for a callsign # # Copyright (c) 2003 Dirk Koopman G1TLH +# Modified Dec 9, 2004 for new website and xml schema by David Spoelstra N9KT +# and tidied up by me (Dirk) # # $Id$ # @@ -13,7 +15,9 @@ my @out; $line = uc $line; return (1, $self->msg('e24')) unless $Internet::allow; return (1, "SHOW/DB0SDX , e.g. SH/DB0SDX ea7wa") unless $line && is_callsign($line); -my $target = $Internet::db0sdx_url || 'dotnet.grossmann.com'; +my $target = $Internet::db0sdx_url || 'www.qslinfo.de'; +my $path = $Internet::db0sdx_path || '/qslinfo'; +my $suffix = $Internet::db0sdx_suffix || '.asmx'; my $port = 80; my $cmdprompt = '/query->.*$/'; @@ -35,8 +39,9 @@ if (!$info) { my $s = qq( - + $line + DXSpider V$main::version B$main::build ($call\@$main::mycall) @@ -47,12 +52,12 @@ if (!$info) { dbg("db0sdx out: $s") if isdbg('db0sdx'); - $t->print("POST /qslinfo/qslinfo.asmx HTTP/1.0"); - $t->print("Host: dotnet.grossmann.com"); + $t->print("POST $path$suffix HTTP/1.0"); + $t->print("Host: $target"); $t->print("Content-Type: text/xml; charset=utf-8"); $t->print("Content-Length: $lth"); $t->print("Connection: Close"); - $t->print("SOAPAction: \"http://dotnet.grossmann.com/qslinfo/qslinfo\""); + $t->print(qq{SOAPAction: "http://$target$path"}); $t->print(""); $t->put($s);