IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5283


Ignore:
Timestamp:
Oct 11, 2005, 4:58:03 PM (21 years ago)
Author:
jhoblitt
Message:

complete file_received()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-PSFTP/lib/PS/IPP/PSFTP.pm

    r5282 r5283  
    11# Copyright (C) 2005  Joshua Hoblitt
    22#
    3 # $Id: PSFTP.pm,v 1.5 2005-10-12 02:49:56 jhoblitt Exp $
     3# $Id: PSFTP.pm,v 1.6 2005-10-12 02:58:03 jhoblitt Exp $
    44
    55package PS::IPP::PSFTP;
     
    3636    );
    3737
    38     my $self = bless (\%p, ref ($class) || $class);
     38    my $self = bless(\%p, ref ($class) || $class);
    3939
    4040    return $self;
     
    8686
    8787    my $url = $self->{base_url}
    88               . "/files_received"
     88              . "/file_received"
    8989              . "?recipient="
    9090              . $self->{recipient}
    9191              . "&id=" . $p{id}
    9292              . "&discarded=" . $p{discarded};
     93
     94    my $ua = LWP::UserAgent->new;
     95    my $response = $ua->get( $url );
     96
     97    if (! $response->is_success) {
     98        carp $response->status_line;
     99        return undef;
     100    }
     101
     102    return 1;
    93103}
    94104
Note: See TracChangeset for help on using the changeset viewer.