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

    r17739 r26158  
    1818use Pod::Usage qw( pod2usage );
    1919
    20 my ($dir, $uri, $last_fileset, $overwrite, $recall, $remember, $verbose, $timeout);
     20my ($dir, $uri, $last_fileset, $overwrite, $recall, $remember, $verbose, $timeout, $no_proxy);
    2121
    2222GetOptions(
     
    2929    'verbose|v'         => \$verbose,
    3030    'timeout|t'         => \$timeout,
     31    'no-proxy'          => \$no_proxy,
    3132) or pod2usage( 2 );
    3233
     
    3940# default http request timeout is 30s
    4041$timeout ||= 30;
     42$no_proxy = 0 if !defined $no_proxy;
    4143
    4244my %p = (
     
    6567my $response = DataStore::Product->new(%p)->request(
    6668    ua_args  => { timeout => $timeout },
     69    no_proxy => $no_proxy,
    6770);
    6871
     
    281284Optional.
    282285
     286=item * --no-proxy
     287
     288Do not load proxy environment variables.
     289
     290Optional.
     291
    283292=back
    284293
Note: See TracChangeset for help on using the changeset viewer.