API: Upload NZB file in .NET

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
rpleum
Newbie
Newbie
Posts: 6
Joined: October 11th, 2009, 7:10 am

API: Upload NZB file in .NET

Post by rpleum »

When I try to upload a nzb file to SABnzbd I'll get this error:

Image

What am I doing wrong? Could someone please help me?

rpleum 8)
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: API: Upload NZB file in .NET

Post by switch »

If you can get more details of the 500 error, or perhaps output the html response to a file and share it with us would be helpful.

Also try setting the content type to application/x-nzb.
rpleum
Newbie
Newbie
Posts: 6
Joined: October 11th, 2009, 7:10 am

Re: API: Upload NZB file in .NET

Post by rpleum »

switch wrote: If you can get more details of the 500 error, or perhaps output the html response to a file and share it with us would be helpful.

Also try setting the content type to application/x-nzb.
I've tried to change the content type to application/x-nzb but I still get the Error 500 code.
Last edited by rpleum on October 12th, 2009, 5:27 pm, edited 1 time in total.
rpleum
Newbie
Newbie
Posts: 6
Joined: October 11th, 2009, 7:10 am

Re: API: Upload NZB file in .NET

Post by rpleum »

rpleum wrote:
switch wrote: If you can get more details of the 500 error, or perhaps output the html response to a file and share it with us would be helpful.

Also try setting the content type to application/x-nzb.
I've tried to change the content type to application/x-nzb but I still get the Error 500 code.
PROBLEM SOLVED:

1) Just change the boundary to:       

Code: Select all

 Dim boundary As String = DateTime.Now.Ticks.ToString("x")
2) Just change name=""nzbfile""; to

Code: Select all

 name=""name""
rpleum8)
Post Reply