Home > Archive > PERL Modules > March 2004 > LWP login via htaccess
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
LWP login via htaccess
|
|
| iperl 2004-03-19, 12:55 pm |
| Hello,
Here's my code :
This code is meant for login to a protected webpage but have not been able to work properly. Please HELP!!!
use LWP::UserAgent;
$ua = LWP::UserAgent->new;
$req = HTTP::Request->new(GET=> $url);$req->authorization_basic($nl_id, $nl_passwd);
print $ua->request($req)->as_string;
| |
| gnari 2004-03-19, 12:55 pm |
| "iperl" <icemail@post1.com> wrote in message
news:01ad785080b6c42f6a2a306ddd178a53@lo
calhost.talkaboutprogramming.com...
> Hello,
>
> Here's my code :
> This code is meant for login to a protected webpage but have not been able
to work properly. Please HELP!!!
>
> use LWP::UserAgent;
> $ua = LWP::UserAgent->new;
> $req = HTTP::Request->new(GET=> $url);$req->authorization_basic($nl_id,
$nl_passwd);
> print $ua->request($req)->as_string;
define work properly.
either your $url is wrong , or your username or password
gnari
| |
| Brian McCauley 2004-03-19, 12:55 pm |
| "gnari" <gnari@simnet.is> writes:
> "iperl" <icemail@post1.com> wrote in message
> news:01ad785080b6c42f6a2a306ddd178a53@lo
calhost.talkaboutprogramming.com...
> to work properly. Please HELP!!!
> $nl_passwd);
>
> define work properly.
>
> either your $url is wrong , or your username or password
Or the authentication scheme or...
--
\\ ( )
. _\\__[oo
.__/ \\ /\@
. l___\\
# ll l\\
###LL LL\\
|
|
|
|
|