[Chicago-talk] WSJ.com signon form has changed as of Sunday. Did anyone else notice this?

Richard Solberg flateyjarbok at yahoo.com
Sun Nov 2 21:26:35 CST 2003


Hello all,

I use perl to sign on to wsj.com to get some data. 
Seems like at about 2pm on Sunday the signon form
changed and the following code fails.  At the last
statement which is a form dump, I get the following
message:

Can't call method "dump" on an undefined value at line
24.


use strict;
use HTTP::Request::Common;
use HTML::Form;
use Date::Simple ('date', 'today');
use LWP::UserAgent;
#use LWP::Debug qw(+);
use HTTP::Cookies;



my $ua = LWP::UserAgent->new();



$ua->agent("Automation/0.1");
$ua->cookie_jar(
  HTTP::Cookies->new( autosave => 1 ));

my $request = $ua->request( POST
'http://online.wsj.com/login?URI=%2Fdocuments%2diaries.htm');

my $form = HTML::Form->parse( $request->content,
$request->base());

print $form->dump;


Thanks all,

Richard


__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/



More information about the Chicago-talk mailing list