26 |
|
|
27 |
|
$agent->agent("Host SSH/1.0 ($sysname $release $machine) "); |
28 |
|
|
29 |
< |
my $response = $agent->get("http://topsecret.douglasthrift.net/auth/hostupdate" |
30 |
< |
. ".cgi?host=$host&mode=n", Authorization => "Basic " . encode_base64("Hos" |
31 |
< |
. "tUpdate:frell2003")); |
29 |
> |
my $response = $agent->post("http://topsecret.douglasthrift.net/auth/hostupdat" |
30 |
> |
. "e.cgi", [host => $host, mode => "n"], Authorization => "Basic " . |
31 |
> |
encode_base64("HostUpdate:frell2003")); |
32 |
|
my $content = $response->content; |
33 |
|
|
34 |
|
if ($content =~ /^name=(.+)$/) |