Jman1 has asked for the wisdom of the Perl Monks concerning the following question:
(UPDATE: The error I'm receiving from $mech->res->status_line is "411 Length required.")
(Fitday accounts are free.)
#!/usr/bin/perl -w use strict; use HTTP::Cookies; use WWW::Mechanize; my $login = shift; my $password = shift; my $mech = WWW::Mechanize->new(cookie_jar => HTTP::Cookies->new); $mech->agent("Firefox/1.0"); $mech->get( 'http://www.fitday.com/' ); $mech->field( 'LoginName', $login ); $mech->field( 'Password', $password); $mech->field( 'SavePassword', 'on'); $mech->click(); print $mech->content();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Screenscraping problem
by Happy-the-monk (Canon) on Jan 12, 2005 at 17:24 UTC | |
|
Re: Screenscraping problem
by Realbot (Scribe) on Jan 12, 2005 at 17:23 UTC | |
by Jman1 (Acolyte) on Jan 12, 2005 at 17:36 UTC | |
by Realbot (Scribe) on Jan 12, 2005 at 17:45 UTC | |
by Jman1 (Acolyte) on Jan 12, 2005 at 18:09 UTC | |
by Jman1 (Acolyte) on Jan 12, 2005 at 18:56 UTC | |
|
Re: Screenscraping problem
by chance (Beadle) on Jan 12, 2005 at 21:00 UTC |