BTW - if you (or someone else) wants to compile their own, this small patch I use which was very useful for me when I was trying to resolve similar issues in the past.
diff --git a/src/webui/webui_api.c b/src/webui/webui_api.c
index 72d6d359a..3992f8a29 100644
--- a/src/webui/webui_api.c
+++ b/src/webui/webui_api.c
@@ -40,6 +40,7 @@ webui_api_handler
r = EINVAL;
goto destroy_args;
}
+ printf(" key: %s val: %s \n", ha->key, ha->val);
htsmsg_add_str(args, ha->key, ha->val);
}
It just prints out to the console the arguments tvheadend finds and the value it parses it to. It was useful in resolving single and double quote issues with curl/wget.
From your curl command above, you would see something like:
key: src val: /recordings/TVRIPS/Navy CIS_ L.A/Season 10/Navy CIS_ L.A - S10E15 - Stadt der Engel.ts
key: dst val: /Media/TVRIPS/Navy CIS_ L.A/Season 10/Navy CIS_ L.A - S10E15 - Stadt der Engel.mkv
2019-10-15 08:46:23.817 [ TRACE] http: HTTP/1.1 POST /api/dvr/entry/filemoved?src=/recordings/TVRIPS/Navy CIS_ L.A/Season 10/Navy CIS_ L.A - S10E15 - Stadt der Engel.ts&dst=/Media/TVRIPS/Navy CIS_ L.A/Season 10/Navy CIS_ L.A - S10E15 - Stadt der Engel.mkv{{Host=192.168.1.13:9981,User-Agent=curl/7.64.0,Accept=*/*,Content-Length=241,Content-Type=application/x-www-form-urlencoded}}
2019-10-15 08:46:23.817 [ ERROR] http: 192.168.1.13: HTTP/1.1 POST (3) /api/dvr/entry/filemoved -- 404
(of course the dst dosn't exist on my system)
And for the curious, this is the output from the webif applying new debugging options with trace enabled for "api,http":
2019-10-15 08:46:15.443 [ TRACE] http: HTTP/1.1 POST /api/tvhlog/config/load?meta=1{{Host=192.168.113:9981,Connection=keep-alive,Content-Length=6,Origin=http://192.168.1.13:9981,X-Requested-With=XMLHttpRequest,User-Agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36,Content-Type=application/x-www-form-urlencoded,Accept=*/*,Referer=http://192.168.1.13:9981/extjs.html,Accept-Encoding=gzip, deflate,Accept-Language=en-US,en;q=0.9,Cookie=ys-api/dvr/entry/grid_failed=o%3Acolumns%3Da%253Ao%25253Aid%25253Ds%2525253Adetails%25255Ewidth%25253Dn%2525253A46%255Eo%25253Aid%25253Dn%2525253A1%25255Ewidth%25253Dn%2525253A25%255Eo%25253Aid%25253Dn%2525253A2%25255Ewidth%25253Dn%2525253A206%255Eo%25253Aid%25253Dn%2525253A3%25255Ewidth%25253Dn%2525253A431%255Eo%25253Aid%25253Dn%2525253A4%25255Ewidth%25253Dn%2525253A127%25255Ehidden%25253Db%2525253A1%255Eo%25253Aid%25253Dn%2525253A5%25255Ewidth%25253Dn%2525253A127%255Eo%25253Aid%25253Dn%2525253A6%25255Ewidth%25253Dn%2525253A127%25255Ehidden%2525
key: node val: {"path":"","enable_syslog":false,"trace":true,"debugsubs":"","tracesubs":"api,http","libav":false}