Custom HTTP Header for streaming archives
#1
Hello,

is it possible to add custom http headers when streaming archives from URLs? I know xbmc supports this:
Code:
http://some.url/file.avi|header=value

I would like to combine this with a .strm file that looks like this:
Code:
rar://http://some.url/file.rar/file.avi

Can anybody point me in the right direction?

Thanks,
Hans
Reply
#2
hmm? so what's the problem? you know rar is of the format rar://<url encoded path to archive>/<file in archive> ...
Reply
#3
(2012-07-09, 13:27)spiff Wrote: hmm? so what's the problem? you know rar is of the format rar://<url encoded path to archive>/<file in archive> ...
Well I tried to add the |header=value after the rar part, and it didn't work. I wasn't sure if/how xbmc parses the http headers in a rar definition.
What I did exactly was:
rar://<url encoded path to archive>/<file in archive>|<urlencoded Cookie=value>
Reply
#4
... you didn't read the structure of the url i told you, did you...

the file you're opening on the remote drive is the *rar* archive, not the file inside the rar. so it's the url to the *archive* that needs the property set, not the url to the file inside the archive.

Code:
archiveurl = http://some/where/|whatever=bar
encode(archiveurl)
rarurl = rar://archiveurl/file.avi
Reply
#5
thanks spiff,

I will test this when I am home
Reply
#6
Oh, good topic!!
I really need help to play a file on .rar archive.
I tried this way, but a error appear showing "Can't find next item to play"

My .strm code:
Code:
archiveurl = http://media-a505.firedrive.com/download/92/89354601f1d7eea77d58429fdada1933?h=lz3QFZ7li1ZSZGNxZmWBqQ&e=1398223600&f=BM.208.rar&domain=firedrive.com
encode(archiveurl)
rarurl = rar://archiveurl/bates.motel.s02e08.hdtv.x264-killers.www.tuserie.com.mp4

Help!
Reply

Logout Mark Read Team Forum Stats Members Help
Custom HTTP Header for streaming archives0