in reply to Problem with proxy and LWP

$ENV{HTTP_PROXY} = 'http://$username:$password@192.168.1.10:8080'; $ENV{HTTPS_PROXY} = 'https://$username:$password@192.168.1.10:8080';

Single quotes don't interpolate (the $username and $password), so you want double quotes here (but don't forget to escape the @).

Not sure if that's the only problem, but it's at least something you probably expected to behave differently.

Replies are listed 'Best First'.
Re^2: Problem with proxy and LWP
by ladyscifi (Novice) on Jun 09, 2011 at 21:28 UTC
    Right you are. However that's a recent change made while very tired. Earlier attempts had it correctly as :
    $ENV{HTTP_PROXY} = "http://$username:$password\@192.168.1.10:8080";

    Unfortunately, I get the same result whether the quotes are correct or not. If it were simply a matter of bad credentials, wouldn't I get a different error? (not the 502 Proxy error)