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/dsget

    r25692 r26158  
    2828    $timeout,
    2929    @xattrs,
     30    $no_proxy,
    3031);
    3132
     
    4445    'timeout|t=s'   => \$timeout,
    4546    'xattr|x=s'     => \@xattrs,
     47    'no-proxy'      => \$no_proxy,
    4648) or pod2usage( 2 );
    4749
     
    8082# default http request timeout is 30s
    8183$timeout ||= 30;
     84$no_proxy = 0 if !defined $no_proxy;
    8285
    8386my %p = (
     
    140143        filename => $tmpfilename,
    141144        ua_args  => { timeout => $timeout },
     145        no_proxy => $no_proxy,
    142146    );
    143147
     
    302306Optional.
    303307
     308=item * --no-proxy
     309
     310Do not load proxy environment variables.
     311
     312Optional.
     313
    304314=item * --copies <n>
    305315
Note: See TracChangeset for help on using the changeset viewer.