May I add HTTP Headers to LibVLC?

This forum is about all development around libVLC.
gam2046
New Cone
New Cone
Posts: 6
Joined: 17 Dec 2015 05:32

May I add HTTP Headers to LibVLC?

Postby gam2046 » 17 Dec 2015 05:41

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)

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: May I add HTTP Headers to LibVLC?

Postby Rémi Denis-Courmont » 17 Dec 2015 09:15

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).
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

gam2046
New Cone
New Cone
Posts: 6
Joined: 17 Dec 2015 05:32

Re: May I add HTTP Headers to LibVLC?

Postby gam2046 » 18 Dec 2015 07:38

well, thanks a lot.
now, I use the local HTTP server to forward requests to achieve this purpose.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 29 guests