On Sunday 01 July 2001 09:12 am, you wrote:
> Hi,
>
> I'm trying out the XMl-RPC 'RemoteSimpleClient'. However, when it tries to
> connect to 'localhost:6690', it said connection refused. I do have Freenet
> running on my machine.
>
> Did the port change? If not, how do I start the server/servlet? I just
> don't see any relevant stuff on Freenet configurator.
>
>
Look in your .freenetrc (*nix) or freenet.ini (Windows) for these lines:
services.xmlrpc.class=Freenet.contrib.xmlrpc.XmlRpcServlet
services.xmlrpc.allowedhosts=127.0.0.1
services.xmlrpc.port=6690
Here are two quick ways to test it:
(needs xmlrpclib from Freenet's CVS)
#!/usr/bin/env python
import sys
from xmlrpclib import *
client = Server("http://localhost:6690/")
data = client.simple.getFile("KSK at test", 20) # key, htl
print data.data
=======================================
#!/usr/bin/env perl
use MIME::Base64;
use Frontier::Client;
$key = @ARGV[0];
$htl = @ARGV[1];
$server = Frontier::Client->new( 'url' => 'http://127.0.0.1:6690/' );
$result = $server->call('simple.getFile', $key, $htl);
print decode_base64($result->value());
> Thanks,
> Nick
>
>
> _______________________________________________
> Devl mailing list
> Devl at freenetproject.org
> http://lists.freenetproject.org/mailman/listinfo/devl
_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl