Page 1 of 1

May I add HTTP Headers to LibVLC?

Posted: 17 Dec 2015 05:41
by gam2046
I need to request a network resource, this resource needs to verify Referer and Cookie, but I did not find SDK in the relevant functions can be set to set HTTP Headers. Is there a way to achieve this goal?(Windows Version)

Re: May I add HTTP Headers to LibVLC?

Posted: 17 Dec 2015 09:15
by RĂ©mi Denis-Courmont
There are input item options for this:
  • no-http-forward-cookies disables cookies (enabled by default).
  • http-referrer sets the HTTP referer header field (unset by default).
You cannot override cookies. Also currently, the cookies jar is only supported by the playlist (meaning VLC itself).

Re: May I add HTTP Headers to LibVLC?

Posted: 18 Dec 2015 07:38
by gam2046
well, thanks a lot.
now, I use the local HTTP server to forward requests to achieve this purpose.