preventing script die-ing on $mech->get($url) resolve failure

39 views
Skip to first unread message

Eric Smith

unread,
Apr 6, 2012, 2:30:00 PM4/6/12
to www-mecha...@googlegroups.com
Hi 

The website $url gives intermittent resolve errors (also on regular browsers) and then causes my script to die with "Proxy Error blah blah..."

What is the best way to make the script retry at intervals until there is no resolve error?

Thanks

Eric Smith

Andy Lester

unread,
Apr 6, 2012, 9:11:36 PM4/6/12
to www-mecha...@googlegroups.com

On Apr 6, 2012, at 1:30 PM, Eric Smith wrote:

The website $url gives intermittent resolve errors (also on regular browsers) and then causes my script to die with "Proxy Error blah blah…"

Turn off autocheck in the constructor and check the results of ->get() manually.

xoxo,
Andy



Eric Smith

unread,
Apr 7, 2012, 12:58:09 PM4/7/12
to www-mecha...@googlegroups.com
Of course, thanks a lot.
Reply all
Reply to author
Forward
0 new messages