Search found 4 matches

by dchoe
Sat Jun 06, 2009 4:23 am
Forum: Web Interface
Topic: csrf - how to authenticate
Replies: 1
Views: 2036

csrf - how to authenticate

i have a greasemonkey script that worked with pre csrf and was trying to figure out how to authenticate to get rpcs to work again
by dchoe
Fri Apr 17, 2009 4:32 pm
Forum: Web Interface
Topic: rpc "torrent-get" help
Replies: 5
Views: 6325

Re: rpc "torrent-get" help

i'm trying to create a greasemonkey script and am able to add a torrent using this:
var addstring = "/transmission/rpc?method=torrent-add&filename=" + window.findhrefs(event.target) + "";
GM_xmlhttpRequest({
method: 'GET',
url: server + addstring,
onload: function(responseDetails) {
alert ...
by dchoe
Fri Apr 17, 2009 2:34 am
Forum: Web Interface
Topic: rpc "torrent-get" help
Replies: 5
Views: 6325

Re: rpc "torrent-get" help

right now, i've just beein trying to get it to work using curl.


curl -d "method=torrent-get" localhost:8081/transmission/rpc
{
"arguments": {},
"result": "no method name"
}

curl localhost:8080/transmission/rpc?method=torrent-get
{
"arguments": {
"torrents": []
},
"result": "no fields ...
by dchoe
Thu Apr 16, 2009 6:11 pm
Forum: Web Interface
Topic: rpc "torrent-get" help
Replies: 5
Views: 6325

rpc "torrent-get" help

I keep getting an error whenever I try to use torrent-get via POST (no method-name) and GET (no fields supplied). I am able to get all the other RPC methods to work.