IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 16, 2009, 3:51:29 PM (16 years ago)
Author:
bills
Message:

Add support for running the data store tools using a proxy server.
This is accomplished by using 'standard' environment variables like
http_proxy and https_proxy.
--no-proxy argument is added to the tools to prevent this behavior.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStore/scripts/dsgetfileset

    r25574 r26158  
    1717use File::Basename qw( basename );
    1818
    19 my ($uri, $outdir, $timeout, $verbose);
     19my ($uri, $outdir, $timeout, $no_proxy, $verbose);
    2020
    2121GetOptions(
     
    2323    'outdir|o=s'        => \$outdir,
    2424    'timeout|t=s'       => \$timeout,
     25    'no-proxy'          => \$no_proxy,
    2526    'verbose|v'         => \$verbose,
    2627) or pod2usage( 2 );
     
    3435# default http request timeout is 30s
    3536$timeout ||= 30;
     37$no_proxy = 0 if !defined $no_proxy;
    3638
    3739my $response = DataStore::FileSet->new( uri => $uri )->request(
    3840        ua_args  => { timeout => $timeout },
     41        no_proxy => $no_proxy,
    3942    );
    4043
     
    117120Optional.
    118121
     122=item * --no-proxy
     123
     124Do not load proxy environment variables.
     125
     126Optional.
     127
    119128=back
    120129
Note: See TracChangeset for help on using the changeset viewer.