cdherold has asked for the wisdom of the Perl Monks concerning the following question:
but for a webpage like the NYTimes it's not that straight forward (I am finding). Before accessing an article there you have to enter your user/pass. It's at this page$ua = LWP::UserAgent->new; $req = HTTP::Request->new(GET => "$url"); $req->authorization_basic('user', 'pass'); $body = $ua->request($req)->as_string;
http://www.nytimes.com/auth/login?URI=http://www.nytimes.com/aponline/international/AP-Turkey-US-Iraq.html
Any ideas on how to get through this and automatically grab the following page?
thanks monks
cdherold
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Not So Basic Password/Username grab of Web Page
by Aristotle (Chancellor) on Mar 01, 2003 at 19:00 UTC | |
|
Re: Not So Basic Password/Username grab of Web Page
by dws (Chancellor) on Mar 01, 2003 at 19:33 UTC | |
|
Re: Not So Basic Password/Username grab of Web Page
by maksl (Pilgrim) on Mar 01, 2003 at 21:08 UTC | |
|
Re: Not So Basic Password/Username grab of Web Page
by pg (Canon) on Mar 01, 2003 at 21:05 UTC |