I'm using the following code to retrieve a web page. It seems that
I'm able to pass the username and password to the web page, but it
does nothing. Looking at the source code of the web page it asks for
an "OnClick", which I figure refers to the "enter" button, (there's
also a reset button after the "enter" button.) I do I go about send
the information and finalizing it with the "OnClick" or "enter" button
in the page. Here's the script I am using. Thanks in advance.
my $url = 'http://192.168.0.1?Use rname=myuser&Pa ssword=mypass';
# Connection to host "pfinal"
use LWP::Simple;
my $content = get $url;
die "Couldn't get $url" unless defined $content;
$content = get($url);
print $content;
I'm able to pass the username and password to the web page, but it
does nothing. Looking at the source code of the web page it asks for
an "OnClick", which I figure refers to the "enter" button, (there's
also a reset button after the "enter" button.) I do I go about send
the information and finalizing it with the "OnClick" or "enter" button
in the page. Here's the script I am using. Thanks in advance.
my $url = 'http://192.168.0.1?Use rname=myuser&Pa ssword=mypass';
# Connection to host "pfinal"
use LWP::Simple;
my $content = get $url;
die "Couldn't get $url" unless defined $content;
$content = get($url);
print $content;
Comment