Passing username and password using LWP::UserAgent
- From: "kill bill" <suvratj@xxxxxxxxx>
- Date: 11 Dec 2006 01:40:57 -0800
Hi,
I ve written a perl script which sends the user name and password
through a proxy for authentication,the problem is that after it is
getting authenticated it is not showing the contents of the desired
page i.e the page which the user wants to visit is not being displayed
code
use LWP::UserAgent;
$ua = new LWP::UserAgent;
$ua->proxy(['http'] => '<http://abc.com:389>');
$req = new HTTP::Request 'GET','http://xyz.com';
$req->proxy_authorization_basic('username','password');
$res = $ua->request($req);
print $res->content if $res->is_success;
print $ua->request($req)->as_string;
code
the problem with the above code is that it does not directs the user to
'http://xyz.com" after authentication can anybody help me out please..
.
- Follow-Ups:
- Re: Passing username and password using LWP::UserAgent
- From: Keith
- Re: Passing username and password using LWP::UserAgent
- From: Big and Blue
- Re: Passing username and password using LWP::UserAgent
- Prev by Date: Re: Accomodate for poor db design using Sort::Maker?
- Next by Date: Re: Accomodate for poor db design using Sort::Maker?
- Previous by thread: Accomodate for poor db design using Sort::Maker?
- Next by thread: Re: Passing username and password using LWP::UserAgent
- Index(es):
Relevant Pages
|
|