Subject: | Net::SSL in Crypt::SSLeay ignores no_proxy settings |
ActivePerl v5.8.6.811 MSWin32-x86-multi-thread
Crypt-SSLeay 0.51
Running on Windows 2000 SP4
Using LWP::UserAgent with Crypt::SSLeay and https_proxy and no_proxy settings
Intranet server with domainname intranet and subdomains is at 192.168.0.12 in our net and registered on our intranet dns bind server.
All IPs/domain names are resolved correct!
* Connecting to https://ssl.intranet ignores no_proxy settings and connects over our internet proxy! This is a problem!
* Connecting to http://intranet connects direct to intranet server.
It seams, that Net::SSL ignores the no_proxy settings an uses the proxy ip/port to connect.
But we have to connect to https://ssl.intranet for testing and programming purposes
CODE: ----snip----
#!/usr/local/bin/perl
use LWP::UserAgent;
my $url = "https://ssl.intranet"; # is IP 192.168.0.12
my $ua = LWP::UserAgent->new;
# proxy to WWW is 192.168.0.1:3128
$ua->proxy([qw( http https )], "http://192.168.0.1:3128");
# intranet is 192.168.0.*, ssl.intranet
$ua->no_proxy( '192.168.0.12', 'ssl.intranet', '192.168.0.1' );
my $req = HTTP::Request->new(GET => $url);
my $res = $ua->request($req);
if ($res->is_success) {
print $res->as_string;
} else {
print "Failed: ", $res->status_line, "\n";
}
1;
----snip----
The same problem occurs with perls GET skript in bin subdir