in reply to Can't Automate Login To System
When I last did this, I had to allow session cookies to get a authorization page to remember my login. See HTTP::Cookies
Then, do your login and it should get you past the first redirect.use LWP::UserAgent; use HTTP::Cookies; my $ua = new LWP::UserAgent(); $ua->cookie_jar(HTTP::Cookies->new());
(You may have to follow that redirect to get to the first page. simple_request doesn't do that, but WWW::Automate might. In either case, I just took the redirect to the homepage rather than too the login page as a sign of successful authorization and skipped right to the rest of my code.)
~J
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Can't Automate Login To System
by Cody Pendant (Prior) on Dec 04, 2003 at 02:54 UTC | |
by jmanning2k (Pilgrim) on Dec 04, 2003 at 21:03 UTC |