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

    r17739 r26158  
    1616use Pod::Usage qw( pod2usage );
    1717
    18 my ($uri, $timeout);
     18my ($uri, $timeout, $no_proxy);
    1919
    2020GetOptions(
    2121    'uri|u=s'       => \$uri,
    2222    'timeout|t'     => \$timeout,
     23    'no-proxy'      => \$no_proxy,
    2324) or pod2usage( 2 );
    2425
     
    3132# default http request timeout is 30s
    3233$timeout ||= 30;
     34$no_proxy = 0 if !defined $no_proxy;
    3335
    3436my %p = (
     
    3840my $response = DataStore::Root->new(%p)->request(
    3941        ua_args  => { timeout => $timeout },
     42        no_proxy => $no_proxy,
    4043    );
    4144
     
    9396Optional.
    9497
     98=item * --no-proxy
     99
     100Do not load proxy environment variables.
     101
     102Optional.
     103
    95104=back
    96105
Note: See TracChangeset for help on using the changeset viewer.