me@linux:/home/rpollard> export HTTPS_PROXY='http://user:pass@proxy:8080'
me@linux:/home/rpollard> echo $HTTPS_PROXY
http://user:pass@proxy:8080
me@linux:/home/rpollard> curl https://www.google.com
302 Moved
302 Moved
The document has moved
here.
me@linux:/home/rpollard> perl GetTest.pl
400 Bad Request at GetTest.pl line 16.
me@linux:/home/rpollard> unset HTTPS_PROXY
me@linux:/home/rpollard> echo $HTTPS_PROXY
me@linux:/home/rpollard> curl https://www.google.com
curl: (6) Could not resolve host: www.google.com
me@linux:/home/rpollard> perl GetTest.pl
500 Can't connect to google.com:443 (Bad hostname) at GetTest.pl line 16.
me@linux:/home/rpollard> perl -v
This is perl 5, version 18, subversion 2 (v5.18.2) built for x86_64-linux-thread-multi
Copyright 1987-2013, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.