summaryrefslogtreecommitdiffstats
path: root/pttpi/cgi/t/article.readfn.pl
blob: e2d0bc2772ca2f4ee9b48f928adc00dfbc8ba9e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl
# $Id: article.readfn.pl,v 1.1 2003/05/19 02:06:34 in2 Exp $
use Frontier::Client;
use Frontier::RPC2;
use MIME::Base64;
use Data::Dumper;
do 'host.pl';

$bid = $ARGV[0] || 0;
$fn = $ARGV[1] || 'M.1047292518.A.48E';

$server = Frontier::Client->new(url => $server_url);
$result = $server->call('article.readfn', $bid, $fn);

print decode_base64($result->{content}->value());