-
-
Notifications
You must be signed in to change notification settings - Fork 417
RPC Utility XMLRPC2SCGI
Jari Sundell edited this page Sep 28, 2016
·
4 revisions
xmlrpc2scgi.py [-p] scgi://localhost:1234 command target [arg ...]
xmlrpc2scgi.py [-p] /path/to/unix_socket command target [arg ...]
Empty type.
Explicit string type.
Explicit integer type.
The target must always be defined, even for commands that do not require any. In such cases "" should be used.
No target.
A download is set as the target using the hexadecimal of its info hash.
A file target with its index.
A peer target with its peer id as a hexadecimal.
A tracker target with its index.
Using the xmlrpc2scgi.py script one can send SCGI commands directly to rTorrent.
~# ./xmlrpc2scgi.py -p 'scgi://localhost:33000' d.name s/1BEB405E5066392CDAE96EEF9F82F7D83C2343E9
Gotan Project - Lunatico (2006)
Without the '-p' flag it will output the SCGI reply without prettifying:
~# ./xmlrpc2scgi.py 'scgi://localhost:33000' d.name s/1BEB405E5066392CDAE96EEF9F82F7D83C2343E9
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<params>
<param><value><string>Gotan Project - Lunatico (2006)</string></value></param>
</params>
</methodResponse>