user8210716
user8210716

Reputation: 49

405 error not allowed -rtorrent -python

I'm trying to connect to my seedbox so I can send it torrents. But I keep getting this

xmlrpclib.ProtocolError: <ProtocolError for username:[email protected]/RPC2: 405 Not Allowed>

Here's my code

import xmlrpclib
server_url = "http://username:[email protected]/"

server = xmlrpclib.ServerProxy(server_url)
torrents = server.download_list()

Upvotes: 0

Views: 344

Answers (1)

pyroscope
pyroscope

Reputation: 4158

Fix your web server config, i.e. allow outside POST requests on /RPC2.

PS: And it's 2018, use https.

Upvotes: 1

Related Questions