N
Nalli
use LWP:
$url = 'https://www.something.com/somethingelse/whatever' ;
$ua = LWP::UserAgent->new;
$ua->timeout(45);
$ua->env_proxy;
$ua->agent("Mozilla/5.01 (Windows; U; NT4.0; en-us) Gecko/
25250101");
$ua->credentials( $url, $url, "username", "password" );
$response = $ua->get($url);
if ($response->is_success)
{
print $html;
}
In order to access $url a username and password are required. The
problem is that I dont know hwo to pass the credentials in order to
successfully access the page. Can someone please tell me how to pass
my login information?
Thank you in advance.
$url = 'https://www.something.com/somethingelse/whatever' ;
$ua = LWP::UserAgent->new;
$ua->timeout(45);
$ua->env_proxy;
$ua->agent("Mozilla/5.01 (Windows; U; NT4.0; en-us) Gecko/
25250101");
$ua->credentials( $url, $url, "username", "password" );
$response = $ua->get($url);
if ($response->is_success)
{
print $html;
}
In order to access $url a username and password are required. The
problem is that I dont know hwo to pass the credentials in order to
successfully access the page. Can someone please tell me how to pass
my login information?
Thank you in advance.