16 |
|
|
17 |
|
if (!($nodename =~ /\./)) |
18 |
|
{ |
19 |
< |
$nodename .= ".local.douglasthrift.net"; |
19 |
> |
$nodename .= ".douglasthrift.net"; |
20 |
|
} |
21 |
|
|
22 |
|
$agent->agent("Host Update/1.0 ($sysname $release $machine) "); |
23 |
|
|
24 |
< |
my $response = $agent->post("http://topsecret.douglasthrift.net/auth/hostupdat" |
25 |
< |
. "e.cgi", [host => $nodename], Authorization => "Basic " . |
26 |
< |
encode_base64("HostUpdate:frell2003")); |
24 |
> |
my $response = $agent->post("http://topsecret.douglasthrift.net/auth/hostupdate.cgi", [host => $nodename], Authorization => "Basic " . encode_base64("HostUpdate:frell2003")); |
25 |
|
my $content = $response->content; |
26 |
|
|
27 |
|
print "$content"; |