So get get fails (400 bad request error), but the code breaks at that line. I cant get it to go to the if/then statement at all. Any ideas? I've tried exceptions to catch that, but that also fails.$link = 'http://www.gasnom.com/ip/ozark/notices/Intraday Cuts on EW & +BS 4-18-08.txt'; $agent = WWW::Mechanize->new(); $agent-> agent_alias( 'Windows IE 6' ); $agent->get($link); if ($child_agent->success()) { $body = $agent->content(); } else { $body = ''; }
In reply to How to deal with error on Mechanize->get by corpx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |