Page 1 of 1
API: Upload NZB file in .NET
Posted: October 11th, 2009, 7:18 am
by rpleum
When I try to upload a nzb file to SABnzbd I'll get this error:
What am I doing wrong? Could someone please help me?
rpleum

Re: API: Upload NZB file in .NET
Posted: October 11th, 2009, 8:43 am
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.
Re: API: Upload NZB file in .NET
Posted: October 11th, 2009, 12:01 pm
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.
Re: API: Upload NZB file in .NET
Posted: October 12th, 2009, 5:33 pm
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
rpleum8)