IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 5, 2008, 4:35:36 PM (18 years ago)
Author:
jhoblitt
Message:

Change DateStore::File to handle passing args to LWP::UserAgent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStore/scripts/dsget

    r17528 r17534  
    33# Copyright (C) 2006-2008  Joshua Hoblitt
    44#
    5 # $Id: dsget,v 1.19 2008-05-05 20:45:53 jhoblitt Exp $
     5# $Id: dsget,v 1.20 2008-05-06 02:35:22 jhoblitt Exp $
    66
    77use strict;
     
    6767
    6868# default http request timeout is 30s
     69$timeout ||= 30;
     70
    6971my %p = (
    7072    uri     => $uri,
    7173    type    => 'chip',
    72     timeout => $timeout ||= 30,
    7374);
    7475
     
    123124
    124125# request the file from the remote data store server (save in tmpfilename)
    125 my $response = DataStore::File->new(%p)->request( filename => $tmpfilename );
     126my $response = DataStore::File->new(%p)->request(
     127    filename => $tmpfilename,
     128    ua_args  => { timeout => $timeout},
     129);
    126130
    127131die "request failed" unless defined $response;
Note: See TracChangeset for help on using the changeset viewer.