rmb has asked for the wisdom of the Perl Monks concerning the following question:
Thanks, rmb#!/usr/local/bin/perl use LWP::UserAgent; use HTTP::Request; use HTTP::Response; my $ua = new LWP::UserAgent; ##$ua->proxy('http', 'http://my_domain\my_username:my_passwd@10.10.10. +10:8080/'); $ua->proxy('http', 'http://10.10.10.10:8080/'); $ua->no_proxy('localdomain.com'); my $request = new HTTP::Request('GET', $ARGV[0]); ##$request->proxy_authorization_basic( 'my_domain\my_username', 'my_pa +sswd' ); my $response = $ua->request($request); if ($response->is_success) { print $response->content; } else { print $response->error_as_HTML; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Proxy Authentication
by Corion (Patriarch) on Jun 10, 2004 at 15:03 UTC | |
by rmb (Novice) on Jun 10, 2004 at 15:12 UTC | |
by Corion (Patriarch) on Jun 10, 2004 at 15:18 UTC | |
by xiper (Friar) on Jun 11, 2004 at 04:39 UTC | |
by rmb (Novice) on Jun 11, 2004 at 10:36 UTC | |
by dada (Chaplain) on Jun 11, 2004 at 21:14 UTC | |
by xiper (Friar) on Jun 12, 2004 at 10:29 UTC | |
|
Re: Proxy Authentication
by eclark (Scribe) on Jun 10, 2004 at 17:35 UTC |