Search found 2 matches
- Sun Sep 04, 2011 8:56 pm
- Forum: General
- Topic: a simple script about making a Transmission RPC request wit
- Replies: 3
- Views: 5054
Re: a simple script about making a Transmission RPC request
"a generic RPC interface" is just about right. The thing is, it's such a trivial matter to implement the transmission json-rpc once you know what your doing, that writing a wrapper around it and maintaining it with each version change is simply an overkill. Only reason to write such a module is if ...
- Sun Sep 04, 2011 3:00 am
- Forum: General
- Topic: a simple script about making a Transmission RPC request wit
- Replies: 3
- Views: 5054
a simple script about making a Transmission RPC request wit
#!/usr/bin/env python
# encoding: utf-8
# a simple script about making an Transmission RPC request with python3
#!/usr/bin/python3
import http.client
import json
HOST = 'localhost' # The remote host
PATH = "/transmission/rpc/" # The path
PORT = 9091 # The same port as used by the server
URL ...