summaryrefslogtreecommitdiffstats
path: root/pttpi/cgi/t/article.readfn.pl
blob: 805948ffffa6d54843156a787ff497cc6d1d692d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl
# $Id$
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());