Get help, report and discuss bugs.
-
FCrane
- Posts: 21
- Joined: 19 Oct 2013, 08:04
Post
by FCrane » 27 Oct 2021, 19:25
Hi!
I need to set the speed rate limit (and enable / disable servers) with a simple HTTP request (from Rainmeters WebParser). It should look something like this:
http://localhost:6789/xmlrpc/rate=2000
I've tried all variations, but nothing works. Always getting "Invalid procedure", etc.
If I try
http://localhost:6789/xmlrpc/rate
I get:
"Not safe procedure for HTTP-Method GET. Use Method POST instead" The WebParser of Rainmeter is very simple and doesn't seem to support POST, etc.
So how is this working? Why are there no examples anywhere to be found? Why is this so unnecessarily complicated??? In Sabnzbd+, you can send simple HTTP commands and it works fine...
Regards!
-
hugbug
- Developer & Admin
- Posts: 7645
- Joined: 09 Sep 2008, 11:58
- Location: Germany
Post
by hugbug » 27 Oct 2021, 22:23
API is documented in
https://nzbget.net/api.
For an example in Python see
Logger.py. The Python library xmlrpclib takes care of communication with nzbget.
If you need to communicate using plain http, you need to send post-requests containing XML-RPC or JSON-RPC data as required by these protocols.
-
FCrane
- Posts: 21
- Joined: 19 Oct 2013, 08:04
Post
by FCrane » 28 Oct 2021, 05:38
Example please?
As I mentioned, there's probably no way to send POST requests with the simple Rainmeter WebParser plugin...
Who is online
Users browsing this forum: No registered users and 65 guests