Hello,
I want to list all torrents by http request.
I have checked the RPC specification (http://trac.transmissionbt.com/browser/ ... c-spec.txt), but could not find the "list all torrents" method.
I tried this - http:// hostname:9091/transmission/rpc?method=torrent-get , but it returns "no fields specified"
Q1. What field(s)/values(s) should I use to list all torrents ?
Q2. Can I use XML-RPC to send the request ?
Thanks
How to list all torrents by http request ?
Re: How to list all torrents by http request ?
I don't know how to make the URL for ask for the torrents, but transmission-remote use the RPC and you can get the list of the torrents. For see what transmission-remote use you can use:
Enrique
I hope it helps youtransmission-remote --debug -l
Enrique
Re: How to list all torrents by http request ?
?method=torrent-get&fields=name,status
where fields= contains any keys you wish to return. see the list of keys under 3.3 at the link you provided.
where fields= contains any keys you wish to return. see the list of keys under 3.3 at the link you provided.
Re: How to list all torrents by http request ?
Hi,Gimp wrote:?method=torrent-get&fields=name,status
where fields= contains any keys you wish to return. see the list of keys under 3.3 at the link you provided.
I tried your URL (... transmission/rpc?method=torrent-get&fields=name,status), but it still returns error as below.
{
"arguments": {
"torrents": []
},
"result": "no fields specified"
}
What should I do ?
Thanks
Re: How to list all torrents by http request ?
Same problem here. I've read and re-read rpc-spec.txt, and "fields" is just another argument, so it would be defined by &fields= just as speed-limit-down is an argument and is set via &speed-limit-down=50 with no problem. If I don't get any other help I may open up a bug report or feature request, not sure which to file, heh. Maybe arrays need to be sent via the GET URL differently?{
"arguments": {
"torrents": []
},
"result": "no fields specified"
}
My URL is as follows:
localhost:9091/transmission/rpc?method=torrent-get&tag=299&fields='name','id'
Tried double quotes, no quotes, and all yield the same response from aibo99. Gimp's suggestion above should work too...any help anyone??
Re: How to list all torrents by http request ?
Try running
{{{
transmission-remote -l --debug
}}}
and look at the JSON message that remote sends to the daemon via an http POST... that should get you going.
Also there is in fact an example of listing torrents in the RPC spec. To get all torrents, rather than a subset, omit the "ids" argument in the request message.
{{{
transmission-remote -l --debug
}}}
and look at the JSON message that remote sends to the daemon via an http POST... that should get you going.
Also there is in fact an example of listing torrents in the RPC spec. To get all torrents, rather than a subset, omit the "ids" argument in the request message.
Re: How to list all torrents by http request ?
Can someone post an example that works:
localhost:9091/transmission/rpc?method=torrent-get&fields='name','id'
I can't get it to work. No mater what I try I get no fields specified errors
Thanks,
Aaron
localhost:9091/transmission/rpc?method=torrent-get&fields='name','id'
I can't get it to work. No mater what I try I get no fields specified errors
Thanks,
Aaron
Re: How to list all torrents by http request ?
It seems like things like that aren't accessible from HTTP GET. only HTTP POST.
-
- Posts: 2
- Joined: Fri Mar 20, 2009 3:06 am
Re: How to list all torrents by http request ?
I can't get it to work using GET or POST, but they do give me different error messages.
These are the results of a http://localhost:9091/transmission/rpc with the following key/values: method:torrent-get, fields:name
POST:
{
"arguments": {},
"result": "no method name"
}
GET:
{
"arguments": { "torrents": [] },
"result": "no fields specified"
}
These are the results of a http://localhost:9091/transmission/rpc with the following key/values: method:torrent-get, fields:name
POST:
{
"arguments": {},
"result": "no method name"
}
GET:
{
"arguments": { "torrents": [] },
"result": "no fields specified"
}