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

    r17752 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=s'       => \$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 $response = DataStore::FileSet->new( uri => $uri )->request(
    3537        ua_args  => { timeout => $timeout },
     38        no_proxy => $no_proxy,
    3639    );
    3740
     
    9194Optional.
    9295
     96=item * --no-proxy
     97
     98Do not load proxy environment variables.
     99
     100Optional.
     101
    93102=back
    94103
Note: See TracChangeset for help on using the changeset viewer.