[Libtorrent-devel] xmlrpc command fails

Ævar Arnfjörð Bjarmason avarab at gmail.com
Thu Aug 19 12:27:33 UTC 2010


On Thu, Aug 19, 2010 at 08:42, Hossein Movahhedian <dma8hm1334 at gmail.com> wrote:
>    I have installed `rtorrent-0.8.6' (configured with the
>  "--with-xmlrpc-c" flag), `libtorrent-0.12.6', `scgi-1.14',
>  and 'xmlrpc_c-1.06.40' successfully on slackware 13.0.
>
>    Also I have added "SCGIMount /RPC2 127.0.0.1:5000" to
>  `/etc/httpd/httpd.conf' and "scgi_port = localhost:5000"
>  and "encoding_list = UTF-8" to `~/.rtorrent.rc'.
>
>    To get the list of all the xmlrpc methods rtorrent supports,
>  I run `rtorrent' and then execute
>  `xmlrpc localhost system.listMethods'. But I get: {{{
>
> Error: Curl failed to perform HTTP POST request.  curl_easy_perform() says:
> couldn't connect to host (-504)
>
> }}}

Your config looks fine, e.g. here's mine:

v t (pu) $ sudo ack SCGIMount /etc/apache2/
/etc/apache2/sites-available/localhost
6:    SCGIMount /RPC2 127.0.0.1:1337
v t (pu) $ ack scgi_port ~leech/.rtorrent.rc
scgi_port = localhost:1337

And my scgi requests work fine.

$ xmlrpc localhost system.listMethods | head -n 3
Result:

Array of 479 items:

Try seeing if the relevant ports are open, check your apache error log etc.


More information about the Libtorrent-devel mailing list