Page 1 of 1

found working solution for ':user-agent=' & ':http-referrer='

Posted: 24 Apr 2022 00:07
by elitedata
if you find that adding custom ':user-agent=' and custom ':http-referrer=' strings under "edit options" does not work when opening a network stream, remove the quotes " " around your agent and referrer strings (example below).
old method for user agent and referrer that does not work (quotes around the strings):

Code: Select all

:http-user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0" :http-referrer="https://vaughn.live"
new method for user agent and referrer that does work (quotes removed from the strings):

Code: Select all

:http-user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0 :http-referrer=https://vaughn.live
for whatever reason, the previous method with quotes around the strings *did* work until VLC was upgraded from 3.0.16 to 3.0.17.4.
additionally, if you have created an XSPF playlist file with quotes around the user agent and referrer strings prior to upgrading to 3.0.17.4, you will also have to remove the quotes (") from around the strings in the file by editing the file in notepad.
i should note that this issue started when upgrading from 3.0.16 to 3.0.17.4 and persisted even after downgrading to 3.0.16 from 3.0.17.4 (clean install, remove cache and preferences did not make a difference), so this solution may apply to any version of VLC as it may work with quotes around the string or without quotes around the strings.