- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
DataStore/scripts/dsrootls (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/DataStore/scripts/dsrootls
r17739 r27840 16 16 use Pod::Usage qw( pod2usage ); 17 17 18 my ($uri, $timeout );18 my ($uri, $timeout, $no_proxy); 19 19 20 20 GetOptions( 21 21 'uri|u=s' => \$uri, 22 'timeout|t' => \$timeout, 22 'timeout|t=i' => \$timeout, 23 'no-proxy' => \$no_proxy, 23 24 ) or pod2usage( 2 ); 24 25 … … 31 32 # default http request timeout is 30s 32 33 $timeout ||= 30; 34 $no_proxy = 0 if !defined $no_proxy; 35 36 if (!($uri =~ /\/index\.txt$/)) { 37 $uri .= '/index.txt' 38 } 33 39 34 40 my %p = ( … … 38 44 my $response = DataStore::Root->new(%p)->request( 39 45 ua_args => { timeout => $timeout }, 46 no_proxy => $no_proxy, 40 47 ); 41 48 … … 93 100 Optional. 94 101 102 =item * --no-proxy 103 104 Do not load proxy environment variables. 105 106 Optional. 107 95 108 =back 96 109
Note:
See TracChangeset
for help on using the changeset viewer.
