简体   繁体   中英

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:password@seedbox.io/RPC2: 405 Not Allowed>

Here's my code

import xmlrpclib
server_url = "http://username:password@.seedbox.io/"

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

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

PS: And it's 2018, use https.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM