#!/usr/bin/ruby1.8 # Use the RPC client require "xmlrpc/client" # Make an object to represent the XML-RPC server. server = XMLRPC::Client.new( "test.blogspam.net", "/", 8888 ) # The comment we're testing message = { "ip" => "1.2.3.4", "email" => "foo@example.com", "name" => "Some Spammer", "comment" => "you suck" } # Now call the test method result = server.call( "testComment", message ) # Show the result print "Result: #{result}\n"