Code: Select all
POST /sabnzbd/api?mode=addfile&name=MovieX&cat=anime&apikey=APIKEY HTTP/1.1
Content-Type: multipart/form-data; boundary=8ccafbe245b1ffd
Accept-Encoding: *
Cookie: session_id=18ac5d3efc8874e10940ef97c991a6fc0f879e54
Content-Length: 1856744
Connection: Keep-Alive
Accept-Language: en-US,*
User-Agent: Mozilla/5.0
Host: tiffany:7777
--8ccafbe245b1ffd
Content-Disposition: form-data; name="name"; filename="MovieX"
Content-Type: text/plain
<?xml version="1.0" encoding="iso-8859-1" ?>
// Content stripped from NZB
</nzb>
--8ccafbe245b1ffd--
Code: Select all
<h2>406 Not Acceptable</h2>
<p>identity, gzip</p>
Code: Select all
POST /sabnzbd/api?mode=addfile&name=MovieX&cat=anime&apikey=APIKEY
HTTP/1.1
Content-Type: multipart/form-data; boundary=8ccb08376f63782
Host: tiffany:7777
Content-Length: 390848
Expect: 100-continue
HTTP/1.1 100
Content-Length: 0
Content-Type: text/plain
--8ccb08376f63782
Content-Disposition: form-data; name="name"; filename="MovieX"
Content-Type: text/plain
<?xml version="1.0" encoding="utf-8" ?>
...
</nzb>
--8ccb08376f63782--
Also note that the reason these two headers from my application are different is that the first is coded using QT (c++) and the other C#.NET. So different platforms, and I can't get QT to behave exactly like C#.NET.