Kodi Community Forum
Pass HTTP Headers to AddDirectoryItem - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Pass HTTP Headers to AddDirectoryItem (/showthread.php?tid=137440)



Pass HTTP Headers to AddDirectoryItem - cubicle - 2012-08-02

Hello

Is there a way to pass headers to AddDirectoryItem when retrieving a video?
What I require specifically is 'Cookies' and 'Referer'
Alternatively, is it possible to to the same with player.Play()?

Thanks


RE: Pass HTTP Headers to AddDirectoryItem - BlueCop - 2012-08-02

(2011-02-28, 14:18)spiff Wrote: http://some/url|Cookie=<urlencodedcookie> - set a cookie
http://some/url|Something=<urlencodedvalue> - set a value in the request header

and of course the combination
http://some/url|Cookie=<urlencodedcookie>&Something=<urlencodedvalue> - set a cookie
I believe you can you use a pipe and add them to the url.


RE: Pass HTTP Headers to AddDirectoryItem - cubicle - 2012-08-02

OK. Will try that
Thanks!