in reply to How do i save an image with www::mechanize
My guess is: this is because you're not sending a Referer(*) header, whereas the browser is. Try:
$mech->add_header( Referer => '<url of page that embeds captcha>' ); $mech->get( ...
(*): not a typo, see RFC 2616
|
|---|