Page 1 of 1

How to 'Add By URL' is the existing URL already has an APIKEY field?

Posted: November 15th, 2010, 11:12 pm
by DejaVu
This has probably been asked before, but I did search and could find the answer - so,

I'm pretty new to this and would like to know how I can rememdy this issue -

localhost:8080/sabnzbd/api?mode=addurl&apikey=[SabNZBd API key]&name=http://api.sitexample.com/download.php? ... b]&apikey=[/b][SITE APIKEY]

When using this URL to Add By URL, is there a fix?
Sab is seemingly accepting the second &apikey= and rejecting it the URL completely. Even though Sab's API is in the URL at the beginning. Sorry if this is a silly question, but my excuse is - I am new! :)

Re: How to 'Add By URL' is the existing URL already has an APIKEY field?

Posted: November 16th, 2010, 3:03 am
by shypike
The second part, the external URl needs quoting for the meta characters.
So & becomes %26 and ? becomes %3F, etc.

localhost:8080/sabnzbd/api?mode=addurl&apikey=[SabNZBd API key]&name=http%3A//api.sitexample.com/download.php%26id=[ID]%26username=[User]%26apikey=[SITE APIKEY]