Authentication: Digest
$ wget -O playlist.m3u --http-user=test --http-password=test http://glosnik.lan:9981/playlist/auth/channels
--2020-12-12 20:22:14-- http://glosnik.lan:9981/playlist/auth/channels
Resolving glosnik.lan (glosnik.lan)... 192.168.2.127
Connecting to glosnik.lan (glosnik.lan)|192.168.2.127|:9981... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Authentication selected: Digest realm="tvheadend", qop=auth, nonce="/yVz8AsSTXvd1lGcuhNtSVK0lQOkrAdNP+Uz0ouE/bk=", opaque="DSZCBSxxtOPwAEXxzQLdG0IRR84xEjyxxLaOE3ILExU="
Reusing existing connection to glosnik.lan:9981.
HTTP request sent, awaiting response... 403 Forbidden
2020-12-12 20:22:14 ERROR 403: Forbidden.
$ curl --user "test:test" http://glosnik.lan:9981/playlist/auth/channels --digest -o playlist.m3u
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 432 100 432 0 0 4235 0 --:--:-- --:--:-- --:--:-- 4235
100 151 100 151 0 0 1078 0 --:--:-- --:--:-- --:--:-- 0
$ cat playlist.m3u
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>403 Forbidden</TITLE>
</HEAD><BODY>
<H1>403 Forbidden</H1>
</BODY></HTML>