Add by url. Querystring same key-parameter problem

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
shakeshar
Newbie
Newbie
Posts: 1
Joined: March 22nd, 2014, 5:21 am

Add by url. Querystring same key-parameter problem

Post by shakeshar »

Hi,
I'm trying to use the Sabnzbd api to add a .nzb file by a url from usenet-crawler.com
I run into a problem because both the Sabnzb API and the usenet-crawler.com API uses the same variable keyname (apikey), which returns a error from Sabnzb: "error: API Key Incorrect"
I should mension that if change to name-parameter to a link that dosen't contain the apikey-parameter it works like a charm.
Do anyone have any ideas on how i could fix this?

Example link to Sabnzbd:
/api?mode=addurl&apikey=SABNZBD-KEY&name=http://www.usenet-crawler.com/api/?t=ge ... RAWLER-KEY
From the Sabnzbd API section:
Add by URL

Added in 0.3
Priority added in 0.5
Shortest:
URL: api?mode=addurl&name=http://www.example.com/example.nzb&nzbname=NiceName
User avatar
jcfp
Release Testers
Release Testers
Posts: 1032
Joined: February 7th, 2008, 12:45 pm

Re: Add by url. Querystring same key-parameter problem

Post by jcfp »

url-encode the link you're trying to send
Post Reply