Don't look in $! for the error, look into $res->as_string and $res->code to see the error.
Personally, I use $ENV{HTTP_PROXY} = 'http://corion:secret@proxy'; to make my proxy and credentials known to LWP, but your approach should work in principle as well. The error message in $res should tell you a bit more.
In reply to Re: lwp proxy Authentication
by Corion
in thread lwp proxy Authentication
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |