I'm setting up a streaming server running Ubuntu 16.04 for personal use, using TVHeadend as a PVR backend for Kodi. TVheadend needs a so-called "XMLTV" file to provide EPG functionality, and this file needs to be updated (downloaded from the TV provider) twice a day.
My TV provider sent me a URL like this to download the file:
http://srv:port/xmltv.php?username=xxxx&password=yyyyyyy
The problem is, even sending user and password in the URL, wget still gets the 401 (Unauthorized) error from the server.
I've already tried sending user and password as arguments on the wget command line (wget --user username --password PASS), but to no avail.
I need to fix this so I can create a Cron Job to automatically update the EPG every 12 hours.