my $ua = LWP::UserAgent->new; # Proxy location $ua->proxy(['http', 'ftp'] => 'proxy-url'); # What we want - hardcoded my $req = HTTP::Request->new('GET',"target-url"); # Authenticate against the proxy - hardcoded $req->proxy_authorization_basic("domain/user", "password");