in reply to WWW::Mechanize - offline debugging
You can save the page to a local file:
$mech->save_content('myfile.html'); ... # time passes $mech->get('file://myfile.html');
and alternatively, you can load the content from disk manually, thus keeping the URLs as you want them:
my $html = <<HTML <html>...</html> HTML $mech->set_html($html);
Look in the documentation of WWW::Mechanize and potentially look at the .t test files distributed with it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: WWW::Mechanize - offline debugging
by Anonymous Monk on Nov 08, 2009 at 18:51 UTC | |
by Corion (Patriarch) on Nov 08, 2009 at 19:10 UTC |