in reply to Getting HTML Source Code where Javascript Redirects Foil LWP
If you're desperate enough to follow the road of generic JavaScript execution instead of the simple template based approach, take a look at Javascript.pm, which uses the Mozilla SeaMonkey JavaScript engine. Now all you have to do is to supply an appropriate browser DOM to the JavaScript, and you're all set.
perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web
|
|---|