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

    r25631 r26158  
    1616use Pod::Usage qw( pod2usage );
    1717
    18 my ($uri, $last_fileset, $timeout, $extra);
     18my ($uri, $last_fileset, $timeout, $extra, $no_proxy);
    1919
    2020GetOptions(
     
    2222    'last_fileset|l=s'  => \$last_fileset,
    2323    'timeout|t=s'       => \$timeout,
    24     'extra|e'         => \$extra,
     24    'extra|e'           => \$extra,
     25    'no-proxy'          => \$no_proxy,
    2526) or pod2usage( 2 );
    2627
     
    3334# default http request timeout is 30s
    3435$timeout ||= 30;
     36$no_proxy = 0 if !defined $no_proxy;
    3537
    3638my %p = (
     
    4244my $response = DataStore::Product->new(%p)->request(
    4345        ua_args  => { timeout => $timeout },
     46        no_proxy => $no_proxy,
    4447    );
    4548
     
    111114Optional.
    112115
     116=item * --no-proxy
     117
     118Do not load proxy environment variables.
     119
     120Optional.
     121
    113122=back
    114123
Note: See TracChangeset for help on using the changeset viewer.