Jump to content

HTTP header passthrough for STRM files


ddurdle

Recommended Posts

ddurdle

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
Link to comment
Share on other sites

Untoten

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
Link to comment
Share on other sites

Untoten

@@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.

Link to comment
Share on other sites

fneves

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 :)

Link to comment
Share on other sites

ddurdle

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
Link to comment
Share on other sites

  • 4 weeks later...
  • 4 years later...
olympus1

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
Link to comment
Share on other sites

  • 8 months later...
28 minutes ago, MaxMax said:

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

Hi, not yet, sorry.

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • 5 months later...

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...