[Kc] Perl LWP (libwww-perl) problems using a proxy that requires Authentication

Daryl Fallin darylvf at gmail.com
Wed Mar 25 10:46:30 PDT 2009


Oops.  yeah that is a problem, but it still fails.

Failed: 500 Can't connect to qualys_user::443 (Bad hostname 'qualys_user:')

or uncomment $ua->proxy and I still get:

Failed: 400 Bad Request


On Wed, Mar 25, 2009 at 12:33 PM, Andrew Moore <amoore at mooresystems.com>wrote:

> 2009/3/25 Daryl Fallin <darylvf at gmail.com>:
> > my $req = HTTP::Request->new(GET =>
> > 'https://$username:$password\@
> qualysguard.qualys.com/msp/scan_report_list.php'<http://qualysguard.qualys.com/msp/scan_report_list.php%27>
> );
>
> This may or may not be the only problem, but I notice that you're
> using single quotes here with variables and escaped "@" in them.
> Single quotes do not allow any interpolation in them, so those
> variables aren't being replaced by their values, and the "@" sign will
> still have a backslash in front of it. Perhaps you want to use double
> quotes there. They allow variables to be interpolated inside them.
>
> Hope it helps!
> -Andy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/kc/attachments/20090325/7600f16c/attachment.html>


More information about the kc mailing list