Prat824 has asked for the wisdom of the Perl Monks concerning the following question:
--------------------------------- The resulting content is always the same authentication page asking for username and password but not the real page. As you can see I am not using authentication in my code but want to make use of already authenticated session that I started on mozilla. Any help would be appreciated. Thanksmy $url = 'http://www.princetonreview.com/schools/college/CollegeAdmis +sions.aspx?iid=1023828&uidbadge=%07'; my $browser = LWP::UserAgent->new; $browser->agent('Mozilla/4.76 [en] (Win98; U)'); my $cookie_jar = HTTP::Cookies::Mozilla->new(qw( autosave 1 file cooki +es.txt ) ); $browser->cookie_jar( $cookie_jar ); my $response = $browser->get( $url ); print $response->content;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to get password protected content via LWP - by emulating my own browser (that can view that content)
by Lawliet (Curate) on Sep 03, 2008 at 21:49 UTC | |
by Prat824 (Acolyte) on Sep 03, 2008 at 23:31 UTC | |
by Lawliet (Curate) on Sep 03, 2008 at 23:36 UTC | |
by Anonymous Monk on Sep 04, 2008 at 06:57 UTC | |
|
Re: How to get password protected content via LWP - by emulating my own browser (that can view that content)
by Lawliet (Curate) on Sep 04, 2008 at 18:33 UTC | |
|
Re: How to get password protected content via LWP - by emulating my own browser (that can view that content)
by Anonymous Monk on Sep 04, 2008 at 07:03 UTC |