Page 1 of 1

:http-referrer is not propagated to chunk requests in HLS streaming

Posted: 29 Mar 2020 16:59
by AndRAM
This is VLC 3.0.8

Some streams are referrer locked so you add :http-referrer option.
Referrer header is added to requests for the master playlist and for chunklists.
Unfortunately it's not set on requests for the actual chunks, so I'm getting 403 when downloading stream's aac fragments.

Reproduce by:

URL:
https://liveingesta118.cdnmedia.tv/laxlive/smil:live.smil/playlist.m3u8

Options:
:network-caching=1000
:http-referrer=https://www.laxmasmusica.com/

Messages:
adaptive error: Failed reading https://liveingesta118.cdnmedia.tv:443/laxlive/smil:live.smil/media-umvtjsnq8_b48000_2255.aac: HTTP/1.1 403 Forbidden
adaptive error: Failed to create demuxer 00000000 Unknown
adaptive error: Failed reading https://liveingesta118.cdnmedia.tv:443/laxlive/smil:live.smil/media-umvtjsnq8_b48000_2256.aac: HTTP/1.1 403 Forbidden

Of course you don't even get to get playlist.m3u8 nor chunklist_b48000.m3u8 when :http-referrer=https://www.laxmasmusica.com/ is not used.

Thanks in advance!

Re: :http-referrer is not propagated to chunk requests in HLS streaming

Posted: 20 Apr 2020 16:19
by AndRAM
So maybe this was not posted to the right forum?
Any suggestion for a better avenue for this fix request?

TIA

Re: :http-referrer is not propagated to chunk requests in HLS streaming

Posted: 23 Apr 2020 11:46
by InTheWings
try 4.0 Nightly Build of VLC from tomorrow

Re: :http-referrer is not propagated to chunk requests in HLS streaming

Posted: 23 Apr 2020 11:46
by InTheWings
or use --adaptive-use-access

Re: :http-referrer is not propagated to chunk requests in HLS streaming

Posted: 23 Apr 2020 16:28
by RĂ©mi Denis-Courmont
I suppose that Javascript implementations of HLS leave the web page as the referrer. But logically, as well as to avoid manual user input, VLC ought to put the manifest URL as the referrer for segments by default, IMO.