ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/FreeBSDAdmin/HostUpdate/HostUpdate.pl
(Generate patch)

Comparing HostUpdate/hostupdate.pl (file contents):
Revision 17 by Douglas Thrift, 2003-11-09T17:13:41-08:00 vs.
Revision 18 by Douglas Thrift, 2003-11-10T18:25:39-08:00

# Line 9 | Line 9
9   use strict;
10   use LWP::UserAgent;
11   use POSIX;
12 + use MIME::Base64 qw(encode_base64);
13  
14   my $agent = LWP::UserAgent->new;
15   my ($sysname, $nodename, $release, $version, $machine) = uname();
16  
17   $agent->agent("Host Update/1.0 ($sysname $release $machine) ");
18  
19 < my $response = $agent->post("http://douglasthrift.net/topsecret/hostupdate.cgi",
20 <        [host => $nodename]);
19 > my $response = $agent->post("http://topsecret.douglasthrift.net/auth/hostupdat"
20 >        . "e.cgi", [host => $nodename], Authorization => "Basic " .
21 >        encode_base64("HostUpdate:frell2003"));
22   my $content = $response->content;
23  
24   print "$content";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines