Jump to content

HTTP header passthrough for STRM files


Recommended Posts

Posted

KODI implemented a feature many years ago where it takes any URL passed to it (via plugin or STRM) that has a | in it and treats anything after the | as headers that should be passed along with the request 

 

For example:

 

http://domain/path/video.mp4|authorization:userid=49384

 

KODI, when it makes the request would pass:

 

GET http://domain/path/video.mp4|authorization

authorization: userid=49384

 

Likewise would be true for cookies, etc.

 

Is it possible to implement the same with Emby, someway?

  • Like 7
Untoten
Posted (edited)

Are you talking about proxy/header auth?  If so, not yet, that is a form of SSO, I have made a mega thread for centralized auth.  They now have a beta for LDAP out, but SSO of any type will probably be a bit longer.

If you can, please show support on the mega thread by liking the first post @@jinxy88, @@fneves, @ddurdle:
https://emby.media/community/index.php?/topic/26495-centralized-authentication-functionality-ldapssohtml-headerradius-development-started/page-1

@@ebr duplicate

Edited by Untoten
Posted

@@Untoten I think @@ddurdle just want to pass headers to the request, it could be auth but something else too.

  • Like 1
Untoten
Posted

@@Untoten I think @@ddurdle just want to pass headers to the request, it could be auth but something else too.

What do you mean 'pass headers'?  You can do that always, with any proxy.  I thought he was asking for auth purposes since he included the user id in the example.

Posted

Not if you want to create custom URLs inside a strm file with your custom headers. But I'm not sure if that's the case, just trying to chime in as it's probably not the same case as yours.

 

Btw: I upvoted your feature, it'll be handy, thanks for being persistent hehe :)

Posted (edited)

Authorization was just one example.  I need it more for cookie support.  I have some content that will only playback when the user passes back a cookie along with the request.  Not an issue with KODI since they built in this kind of support for KODI accepting a '|' in a URL to be reinterpreted that anything after the '|' should be as headers that should be passed along with the request

Edited by ddurdle
  • 4 weeks later...
  • 4 years later...
Posted (edited)

upvote... since this was requested years ago, is it supported today?

Parsing headers when you play a https/http file is very important and it is required by most http links today (for cookies, for a specific required user agent, for authorization etc).

 

Edited by olympus1
Posted

Not yet but that should be easy enough to add.

  • Like 1
  • 8 months later...
Posted

Hi, is this possible to add headers to a strm file?? 

Posted
28 minutes ago, MaxMax said:

Hi, is this possible to add headers to a strm file?? 

Hi, not yet, sorry.

  • Sad 1
  • 1 month later...
Posted

Still waitting for this feature..

Headers should be the most important thing on STRM files.

  • Thanks 1
  • 2 weeks later...
Posted

Upvote! Is this at least being worked on? Really hoping this gets supported. 

  • 5 months later...
Posted

I'm also waiting for this feature. Thanks

  • Like 1
  • 1 year later...
Posted

Still waiting :(

This is somewhat detrimental to using STRM files now, we need to be able to pass params like useragent, etc in the headers on the request

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...