view release on metacpan or search on metacpan
CDDB_get.pm view on Meta::CPAN
$CDDB_PORT = $config->{CDDB_PORT} if (defined($config->{CDDB_PORT}));
$CDDB_MODE = $config->{CDDB_MODE} if (defined($config->{CDDB_MODE}));
$CD_DEVICE = $config->{CD_DEVICE} if (defined($config->{CD_DEVICE}));
$HELLO_ID = $config->{HELLO_ID} if (defined($config->{HELLO_ID}));
$PROTO_VERSION = $config->{PROTO_VERSION} if (defined($config->{PROTO_VERSION}));
my $HTTP_PROXY = $config->{HTTP_PROXY} if (defined($config->{HTTP_PROXY}));
my $FW=1 if (defined($config->{FW}));
if(defined($diskid)) {
$id=$diskid->[0];
$total=$diskid->[1];
CDDB_get.pm view on Meta::CPAN
my $host=$CDDB_HOST;
my $port=80;
my ($user,$pass);
if($HTTP_PROXY) {
if($HTTP_PROXY =~ /^(http:\/\/|)(.+?):(.+)\@(.+?):(.+)/) {
$user=$2;
$pass=$3;
$host=$4;
$port=$5;
} elsif($HTTP_PROXY =~ /^(http:\/\/|)(.+?):(\d+)/) {
$host=$2;
$port=$3;
}
$url="http://$CDDB_HOST".$url." HTTP/1.0";
}
CDDB_get.pm view on Meta::CPAN
}
print $socket "\n";
print $socket "\n" if $FW;
if($HTTP_PROXY) {
while(<$socket> =~ /^\S+/){};
}
$return=<$socket>;
chomp $return;
CDDB_get.pm view on Meta::CPAN
my $host=$CDDB_HOST;
my $port=80;
my ($user,$pass);
if($HTTP_PROXY) {
if($HTTP_PROXY =~ /^(http:\/\/|)(.+?):(.+)\@(.+?):(.+)/) {
$user=$2;
$pass=$3;
$host=$4;
$port=$5;
} elsif($HTTP_PROXY =~ /^(http:\/\/|)(.+?):(\d+)/) {
$host=$2;
$port=$3;
}
$url="http://$CDDB_HOST".$url." HTTP/1.0";
}
CDDB_get.pm view on Meta::CPAN
}
print $socket "\n";
print $socket "\n" if $FW;
if($HTTP_PROXY) {
while(<$socket> =~ /^\S+/){};
}
while(<$socket>) {
last if(/^\./);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CGI/Emulate/PSGI.pm view on Meta::CPAN
SERVER_SOFTWARE => "CGI-Emulate-PSGI",
REMOTE_ADDR => '127.0.0.1',
REMOTE_HOST => 'localhost',
REMOTE_PORT => int( rand(64000) + 1000 ), # not in RFC 3875
# REQUEST_URI => $uri->path_query, # not in RFC 3875
( map { $_ => $env->{$_} } grep { !/^psgix?\./ && $_ ne "HTTP_PROXY" } keys %$env )
};
return wantarray ? %$environment : $environment;
}
view all matches for this distribution
view release on metacpan or search on metacpan
One of B<cpanplus>, B<cpan>, B<web>, or B<reg>, this parameter specifies which method to use when retrieving a module from CPAN. Web retrievals are by parsing the CPAN website and may be faster though more error prone. To use either the CPAN or CPA...
If your environment requires the use of a proxy, simply set the environment variable as indicated below in (bash format):
F<export HTTP_PROXY=http://user:password@host.org:8080>
=item B<--modules, -f =C<string-value>>
Lists of modules to be processed can be stored in a file. Pass this parameter the name of your file. The file should contain the name of each module in a single line and the modules can be specified in any of their many forms (e.g. url, path to tar...
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CPAN/LWP/UserAgent.pm view on Meta::CPAN
# $self->get_basic_credentials or some equivalent and this will be
# $self->dispatched to our own get_basic_credentials method.
# Our own get_basic_credentials sets $USER and $PASSWD, two globals.
# 407 stands for HTTP_PROXY_AUTHENTICATION_REQUIRED. Which means
# although we have gone through our get_basic_credentials, the proxy
# server refuses to connect. This could be a case where the username or
# password has changed in the meantime, so I'm trying once again without
# $USER and $PASSWD to give the get_basic_credentials routine another
# chance to set $USER and $PASSWD.
view all matches for this distribution
view release on metacpan or search on metacpan
inc/bundle/HTTP/Tiny.pm view on Meta::CPAN
delete $self->{proxy};
}
# http proxy
if (! exists $self->{http_proxy} ) {
# under CGI, bypass HTTP_PROXY as request sets it from Proxy header
local $ENV{HTTP_PROXY} = ($ENV{CGI_HTTP_PROXY} || "") if $ENV{REQUEST_METHOD};
$self->{http_proxy} = $ENV{http_proxy} || $ENV{HTTP_PROXY} || $self->{proxy};
}
if ( defined $self->{http_proxy} ) {
$self->_split_proxy( http_proxy => $self->{http_proxy} ); # validate
$self->{_has_proxy}{http} = 1;
inc/bundle/HTTP/Tiny.pm view on Meta::CPAN
=over 4
=item *
http_proxy or HTTP_PROXY
=item *
https_proxy or HTTPS_PROXY
inc/bundle/HTTP/Tiny.pm view on Meta::CPAN
all_proxy or ALL_PROXY
=back
If the C<REQUEST_METHOD> environment variable is set, then this might be a CGI
process and C<HTTP_PROXY> would be set from the C<Proxy:> header, which is a
security risk. If C<REQUEST_METHOD> is set, C<HTTP_PROXY> (the upper case
variant only) is ignored, but C<CGI_HTTP_PROXY> is considered instead.
Tunnelling C<https> over an C<http> proxy using the CONNECT method is
supported. If your proxy uses C<https> itself, you can not tunnel C<https>
over it.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CPAN/Audit/DB.pm view on Meta::CPAN
use warnings;
our $VERSION = '20260607.001';
sub db {
{"dists" => {"ActivePerl" => {"advisories" => [{"affected_versions" => ["==5.16.1.1601"],"cves" => ["CVE-2012-5377"],"description" => "Untrusted search path vulnerability in the installation functionality in ActivePerl 5.16.1.1601, when installed in...
}
__PACKAGE__;
view all matches for this distribution
view release on metacpan or search on metacpan
t/Catmandu-Fix-search_sru.t view on Meta::CPAN
BEGIN {
$pkg = 'Catmandu::Fix::search_sru';
use_ok $pkg;
$ENV{'http_proxy'} = '';
$ENV{'HTTP_PROXY'} = '';
$ENV{'HTTPS_PROXY'} = '';
}
require_ok $pkg;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Cikl/Smrt/Fetchers/Http.pm view on Meta::CPAN
my($k,$v);
my $found = 0;
while(($k, $v) = each %ENV) {
if ($ENV{REQUEST_METHOD}) {
# Need to be careful when called in the CGI environment, as
# the HTTP_PROXY variable is under control of that other guy.
next if $k =~ /^HTTP_/;
$k = "HTTP_PROXY" if $k eq "CGI_HTTP_PROXY";
}
$k = lc($k);
next unless $k =~ /^(.*)_proxy$/;
$k = $1;
unless($k eq 'no') {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Config/Model/models/PopCon.pod view on Meta::CPAN
=back
=head2 HTTP_PROXY
Allows one to specify an HTTP proxy server, the syntax is "http://proxy:port". This overrides the environment variable http_proxy. I< Optional. Type uniline. >
=head2 MY_HOSTID
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Config/Model/FuseUI.pm view on Meta::CPAN
Mounting config on fused in background.
Use command 'fusermount -u fused' to unmount
$ ll fused
total 4
-rw-r--r-- 1 domi domi 1 Dec 8 19:27 DAY
-rw-r--r-- 1 domi domi 0 Dec 8 19:27 HTTP_PROXY
-rw-r--r-- 1 domi domi 0 Dec 8 19:27 MAILFROM
-rw-r--r-- 1 domi domi 0 Dec 8 19:27 MAILTO
-rw-r--r-- 1 domi domi 32 Dec 8 19:27 MY_HOSTID
-rw-r--r-- 1 domi domi 3 Dec 8 19:27 PARTICIPATE
-rw-r--r-- 1 domi domi 0 Dec 8 19:27 SUBMITURLS
view all matches for this distribution
view release on metacpan or search on metacpan
share/specs/v1.32.yaml view on Meta::CPAN
GenericResources:
$ref: "#/definitions/GenericResources"
HttpProxy:
description: |
HTTP-proxy configured for the daemon. This value is obtained from the
[`HTTP_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html) environment variable.
Containers do not automatically inherit this configuration.
type: "string"
example: "http://user:pass@proxy.corp.example.com:8080"
HttpsProxy:
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Etherpad.pm view on Meta::CPAN
$ec = $ec->proxy({
http => 'http://proxy.example.org',
https => 'http://proxy.example.org'
});
OPTIONAL. Proxy settings. If set to { detect => 1 }, Etherpad will check environment variables HTTP_PROXY, http_proxy, HTTPS_PROXY, https_proxy, NO_PROXY and no_proxy for proxy information. No default.
=head1 METHODS
Etherpad inherits all methods from Mojo::Base and implements the following new ones.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/File/HTTP.pm view on Meta::CPAN
# PATH will change in case of proxy
$self->[REAL_PATH] = $self->[PATH];
# handle proxy
my $proxy = $self->[PROTO] eq 'HTTPS' ? $ENV{HTTPS_PROXY}||$ENV{HTTP_PROXY} : $ENV{HTTP_PROXY};
if ($proxy) {
my $no_proxy = join('|', map {s/^\*?\.//;$_} split(/[, ]+/, $ENV{NO_PROXY}||''));
unless (
($self->[HOST] eq '127.0.0.1')
view all matches for this distribution
view release on metacpan or search on metacpan
maint/apache/httpd.conf view on Meta::CPAN
Require all granted
</Directory>
<IfModule headers_module>
#
# Avoid passing HTTP_PROXY environment to CGI's on this or any proxied
# backend servers which have lingering "httpoxy" defects.
# 'Proxy' request header is undefined by the IETF, not listed by IANA
#
RequestHeader unset Proxy early
</IfModule>
view all matches for this distribution
view release on metacpan or search on metacpan
script/rsybak view on Meta::CPAN
# else {
# delete $self->{proxy};
# }
#
# if (! exists $self->{http_proxy} ) {
# local $ENV{HTTP_PROXY} if $ENV{REQUEST_METHOD};
# $self->{http_proxy} = $ENV{http_proxy} || $ENV{HTTP_PROXY} || $self->{proxy};
# }
#
# if ( defined $self->{http_proxy} ) {
# $self->_split_proxy( http_proxy => $self->{http_proxy} );
# $self->{_has_proxy}{http} = 1;
view all matches for this distribution
view release on metacpan or search on metacpan
- (personal) Site changed text 'Posisi Saldo' to 'Informasi Saldo' in
account details/balance page.
- Experiment using LWP::Protocol::Net::Curl because it supports
HTTP_PROXY and its sslversion=>3 works while HTTPS_VERSION=3 does not
work and hangs the website.
- Use HTTP::Headers::Patch::DontUseStorable to avoid problem when
cloning Regexp object.
view all matches for this distribution
view release on metacpan or search on metacpan
- Updated quotemedia url.
1.03 Wed Nov 2 16:52:30 EST 2005
- Minor bug fixes
- Forced date calcs to GMT to avoid some cygwin/win errors
- Added auto_proxy, enabled during tests so that if $ENV{HTTP_PROXY}
is present $ua->env_proxy will be automatically invoked
- Tests will skip if network connectivity cannot be established
1.02 Wed Aug 3 14:46:43 EDT 2005
- Fixed Date::Manip requirement that was inadvertently dropped.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Firefox/Marionette.pm view on Meta::CPAN
=back
=head1 CONFIGURATION AND ENVIRONMENT
Firefox::Marionette requires no configuration files or environment variables. It will however use the DISPLAY and XAUTHORITY environment variables to try to connect to an X Server.
It will also use the HTTP_PROXY, HTTPS_PROXY, FTP_PROXY and ALL_PROXY environment variables as defaults if the session L<capabilities|Firefox::Marionette::Capabilities> do not specify proxy information.
=head1 DEPENDENCIES
Firefox::Marionette requires the following non-core Perl modules
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Furl.pm view on Meta::CPAN
This is an easy-to-use alias to C<request()>, sending the C<DELETE> method.
=head3 C<< $furl->env_proxy() >>
Loads proxy settings from C<< $ENV{HTTP_PROXY} >> and C<< $ENV{NO_PROXY} >>.
=head1 TIPS
=over 4
view all matches for this distribution
view release on metacpan or search on metacpan
t/lib/FusionInventory/Test/Utils.pm view on Meta::CPAN
my ($string) = @_;
return pack("C*", map { hex($_) } split (/,/, $string));
}
sub unsetProxyEnvVar {
foreach my $key (qw(http_proxy https_proxy HTTP_PROXY HTTPS_PROXY)) {
delete($ENV{$key});
}
}
sub run_executable {
view all matches for this distribution
view release on metacpan or search on metacpan
t/01-anyevent-http.t view on Meta::CPAN
plan skip_all => "Couldn't load Future::HTTP::AnyEvent: $err";
exit;
};
delete @ENV{ qw[
HTTP_PROXY
http_proxy
HTTP_PROXY_ALL
http_proxy_all
HTTPS_PROXY
https_proxy
CGI_HTTP_PROXY
ALL_PROXY
all_proxy
] };
diag( "Version of AnyEvent::HTTP: " . AnyEvent::HTTP->VERSION );
view all matches for this distribution
view release on metacpan or search on metacpan
bin/make_das_conf.pl view on Meta::CPAN
GetOptions('proxy=s' => \$proxy) or usage_statement();
my $url = shift;
$url or usage_statement();
$url =~ m!^http:.+das(/\w+)?$! or usage_statement("This doesn't look like a DAS URL to me.");
$ENV{HTTP_PROXY} ||= $proxy;
list_sources($url) && exit 0 if $url =~ m!das/?$!;
generate_config_file($url);
exit 0;
bin/make_das_conf.pl view on Meta::CPAN
This utility attempts to contact a DAS source and to create a starter
configuration file for gbrowse. If you don\'t know the list of data sources
it will retrieve them and ask you to select one.
If you need an HTTP proxy, set the HTTP_PROXY environment variable to
the host and port number, in the form "http://proxy.host:port/", or
pass the proxy URL to the -proxy option.
END
; }
sub list_sources {
my $url = shift;
my $das = Bio::Das->new($url);
warn "proxy = $ENV{HTTP_PROXY}";
$das->proxy($ENV{HTTP_PROXY}) if $ENV{HTTP_PROXY};
my @sources = $das->sources or bad_request_exit($das);
print "The following DAS URLs are available at this server. Please call the script again\n";
print "using one of the following URLs:\n\n";
for my $s (@sources) {
print $s->url,"\n";
bin/make_das_conf.pl view on Meta::CPAN
sub generate_config_file {
my $url = shift;
my ($server,$dsn) = $url=~ m[^(.+/das)/(\w+)];
my $das = Bio::Das->new($server=>$dsn);
$das->proxy($ENV{HTTP_PROXY}) if $ENV{HTTP_PROXY};
my @sources = $das->sources or bad_request_exit($das);
my ($source) = grep {$_->id eq $das->default_dsn} @sources;
my @types = $das->types or bad_request_exit($das);
bin/make_das_conf.pl view on Meta::CPAN
my @entry_points = sort {"$a" cmp "$b"} $das->entry_points;
foreach (@entry_points) { # remove coordinates
s/:\d+,\d+$//;
}
my $proxy = $ENV{HTTP_PROXY} ? "-proxy $ENV{HTTP_PROXY}" : '';
# top part of the config file
print <<END;
[GENERAL]
description = $description
view all matches for this distribution
view release on metacpan or search on metacpan
t/14-cmp-validator.t view on Meta::CPAN
# Proves the default HTTP::Tiny is constructed with env_proxy => 1
# by setting an unreachable proxy and asserting the failure mentions
# it. Skip if the surrounding environment already has a real proxy
# configured -- we don't want to disturb the user's shell.
plan skip_all => "http_proxy already set in env" if $ENV{http_proxy} || $ENV{HTTP_PROXY};
plan skip_all => "HTTP::Tiny not installed" unless eval { require HTTP::Tiny; 1 };
local $ENV{http_proxy} = 'http://127.0.0.1:1';
throws_ok {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Google/Ads/AdWords/Client.pm view on Meta::CPAN
);
# Injecting our own transport.
$service_port->set_transport( $self->get_transport() );
if ( $ENV{HTTP_PROXY} ) {
$service_port->get_transport()->proxy( ['http'], $ENV{HTTP_PROXY} );
}
if ( $ENV{HTTPS_PROXY} ) {
$service_port->get_transport()->proxy( ['https'], $ENV{HTTPS_PROXY} );
}
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
my $host = 'www.findagrave.com:80';
if($ENV{'http_proxy'} && ($ENV{'http_proxy'} =~ /^.+\/\/(\w+:\d+)$/)) {
$host = "$1:3128";
} elsif($ENV{'HTTP_PROXY'} && ($ENV{'HTTP_PROXY'} =~ /^.+\/\/(\w+:\d+)$/)) {
$host = "$1:3128";
}
if(my $s = IO::Socket::INET->new(
# PeerAddr => 'www.ripe.net:43',
# PeerAddr => 'whois.apnic.net:43',
view all matches for this distribution
view release on metacpan or search on metacpan
my $line = '';
print STDERR __LINE__, ": Geo::Weather: Attempting to GET current weather at $results{url}\n" if $self->{debug};
my $ua = new LWP::UserAgent;
my $request = new HTTP::Request('GET',$results{url});
my $proxy_user = $self->{proxy_user} || $ENV{HTTP_PROXY_USER} || '';
my $proxy_pass = $self->{proxy_pass} || $ENV{HTTP_PROXY_PASS} || '';
$request->proxy_authorization_basic($proxy_user, $proxy_pass) if $self->{proxy} && $proxy_user;
$ua->timeout($self->{timeout}) if $self->{timeout};
$ua->agent($self->{agent_string});
return $ERROR_QUERY unless $url;
print STDERR __LINE__, ": Geo::Weather: Attempting to GET forecast at $url\n" if $self->{debug};
my $ua = new LWP::UserAgent;
my $request = new HTTP::Request('GET', $url);
my $proxy_user = $self->{proxy_user} || $ENV{HTTP_PROXY_USER} || '';
my $proxy_pass = $self->{proxy_pass} || $ENV{HTTP_PROXY_PASS} || '';
$request->proxy_authorization_basic($proxy_user, $proxy_pass) if $self->{proxy} && $proxy_user;
$ua->timeout($self->{timeout}) if $self->{timeout};
$ua->agent($self->{agent_string});
Use HTTP proxy for the request. Format is http://proxy.server:port/. Default is no proxy.
=item * B<proxy_user>
Sets the username to use for proxying. Defaults to the HTTP_PROXY_USER environment variable, if set, or don't use authentication if blank.
=item * B<proxy_pass>
Sets the password to use for proxying. Defaults to the HTTP_PROXY_PASS environment variable, if set.
=item *B<agent_string>
HTTP User-Agent header for request. Default is Geo::Weather/$VERSION.
view all matches for this distribution
view release on metacpan or search on metacpan
WeatherNOAA.pm view on Meta::CPAN
# Create the useragent and get the data
#
if (! $UA) {
$UA = new LWP::UserAgent;
if ( $ENV{'HTTP_PROXY'} or $ENV{'http_proxy'} ) {
$UA->env_proxy;
}
}
$UA->agent("WeatherNOAA/$VERSION");
view all matches for this distribution
view release on metacpan or search on metacpan
deps/libgit2/deps/winhttp/winhttp.h view on Meta::CPAN
typedef struct
{
DWORD dwAccessType;
LPWSTR lpszProxy;
LPWSTR lpszProxyBypass;
} WINHTTP_PROXY_INFO, *LPWINHTTP_PROXY_INFO;
typedef WINHTTP_PROXY_INFO WINHTTP_PROXY_INFOW;
typedef LPWINHTTP_PROXY_INFO LPWINHTTP_PROXY_INFOW;
typedef struct
{
BOOL fAutoDetect;
LPWSTR lpszAutoConfigUrl;
deps/libgit2/deps/winhttp/winhttp.h view on Meta::CPAN
BOOL WINAPI WinHttpCheckPlatform(void);
BOOL WINAPI WinHttpCloseHandle(HINTERNET);
HINTERNET WINAPI WinHttpConnect(HINTERNET,LPCWSTR,INTERNET_PORT,DWORD);
BOOL WINAPI WinHttpCrackUrl(LPCWSTR,DWORD,DWORD,LPURL_COMPONENTS);
BOOL WINAPI WinHttpCreateUrl(LPURL_COMPONENTS,DWORD,LPWSTR,LPDWORD);
BOOL WINAPI WinHttpGetDefaultProxyConfiguration(WINHTTP_PROXY_INFO*);
BOOL WINAPI WinHttpGetIEProxyConfigForCurrentUser(WINHTTP_CURRENT_USER_IE_PROXY_CONFIG*);
BOOL WINAPI WinHttpGetProxyForUrl(HINTERNET,LPCWSTR,WINHTTP_AUTOPROXY_OPTIONS*,WINHTTP_PROXY_INFO*);
HINTERNET WINAPI WinHttpOpen(LPCWSTR,DWORD,LPCWSTR,LPCWSTR,DWORD);
HINTERNET WINAPI WinHttpOpenRequest(HINTERNET,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR*,DWORD);
BOOL WINAPI WinHttpQueryAuthParams(HINTERNET,DWORD,LPVOID*);
BOOL WINAPI WinHttpQueryAuthSchemes(HINTERNET,LPDWORD,LPDWORD,LPDWORD);
BOOL WINAPI WinHttpQueryDataAvailable(HINTERNET,LPDWORD);
BOOL WINAPI WinHttpQueryHeaders(HINTERNET,DWORD,LPCWSTR,LPVOID,LPDWORD,LPDWORD);
BOOL WINAPI WinHttpQueryOption(HINTERNET,DWORD,LPVOID,LPDWORD);
BOOL WINAPI WinHttpReadData(HINTERNET,LPVOID,DWORD,LPDWORD);
BOOL WINAPI WinHttpReceiveResponse(HINTERNET,LPVOID);
BOOL WINAPI WinHttpSendRequest(HINTERNET,LPCWSTR,DWORD,LPVOID,DWORD,DWORD,DWORD_PTR);
BOOL WINAPI WinHttpSetDefaultProxyConfiguration(WINHTTP_PROXY_INFO*);
BOOL WINAPI WinHttpSetCredentials(HINTERNET,DWORD,DWORD,LPCWSTR,LPCWSTR,LPVOID);
BOOL WINAPI WinHttpSetOption(HINTERNET,DWORD,LPVOID,DWORD);
WINHTTP_STATUS_CALLBACK WINAPI WinHttpSetStatusCallback(HINTERNET,WINHTTP_STATUS_CALLBACK,DWORD,DWORD_PTR);
BOOL WINAPI WinHttpSetTimeouts(HINTERNET,int,int,int,int);
BOOL WINAPI WinHttpTimeFromSystemTime(const SYSTEMTIME *,LPWSTR);
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Google/Ads/AdWords/Client.pm view on Meta::CPAN
Google::Ads::AdWords::Deserializer->new({client => $self})});
# Injecting our own transport.
$service_port->set_transport($self->get_transport());
if ($ENV{HTTP_PROXY}) {
$service_port->get_transport()->proxy(['http'], $ENV{HTTP_PROXY});
}
if ($ENV{HTTPS_PROXY}) {
$service_port->get_transport()->proxy(['https'], $ENV{HTTPS_PROXY});
}
view all matches for this distribution
view release on metacpan or search on metacpan
t/90_env_proxy.t view on Meta::CPAN
}
note "LWP::UserAgent: $LWP::UserAgent::VERSION\n";
{
# self note: LWP::UserAgent 5.819 allowed $ENV{HTTP_PROXY} = '',
# but I got a failure report for LWP::UserAgent 5.821
local %ENV;
delete $ENV{HTTP_PROXY};
my $g = Google::Chart->new(type => 'Line');
ok(! $g->ua->proxy('http'), "http proxy should not be set");
}
{
local $ENV{HTTP_PROXY} = 'http://localhost:3128';
my $g = Google::Chart->new(type => 'Line');
is($g->ua->proxy('http'), $ENV{HTTP_PROXY}, "http proxy should be set");
}
{
local $ENV{HTTP_PROXY} = 'http://localhost:3128';
local $ENV{GOOGLE_CHART_ENV_PROXY} = 0;
my $g = Google::Chart->new(type => 'Line');
ok(! $g->ua->proxy('http'), "http proxy should not be set");
}
view all matches for this distribution