How to change http header
#1
I am novice and do not know if i picked up correct forum section.
I have Frodo running on Windows 7. Need to change a header in the network link of a live tv stream.
I've found that it should work like this:
http[s]://[username[:password]@]host[:port]/directory/file?a=b&c=d|option1=value1&option2=value2
However, it is not working on my PC. Somehow HXMC is adding Accept=value, which is causing the issue.
Neither is sorting options and values in option1=value1&option2=value2 properly. It lists all of them in one line only.
Also, XBMC is adding Connection=keep-alive, but i need Connection=close
Any help is appreciated.
Reply
#2
Welcome to the XBMC forums.

What's the context for this? Are you using some add-on, script or strm file to view this stream? Also, what is "HXMC"?
Reply
#3
Thank you for your reply.
I am trying to play network stream in Video mode: Video-File then select .strm file which has several links for live tv network streams. However, some links are user agent filtered, so i have to change User-Agent. Not just user agent, but modify other options in the header. The format i found at http://wiki.xbmc.org/ it is not working for me.
It must be some bug or something else in Frodo, because format http[s]://[username[:password]@]host[:port]/directory/file?a=b&c=d|option1=value1&option2=value2 does not work, at least in Windows 7. I quickly tested it on Gotham and it looks like same thing.
XBMC is adding other Options Like Accept=, which i do not need because provider is requesting very specific header options.
So the final questions are :
1.How to prevent XBMC adding options into the header that are causing problems for me?
2. How to format |option1=value1&option2=value2 to list options and values as a true header. Right now, in the link sent by XBMC all options and values are in one line.
Sorry for the typo HXMC, it wos supposed to be XBMC.
Thanks again for your response.
Reply
#4
Well, I've resolved issues with a header. Now, i found that PAPPlayer is opening network stream starting with HEAD method instead directly with GET.
So, the question is how to skip HEAD and go directly to GET?
Let's say, skip HEAD /my.server.com/stream1|User-Agent=foo and go directly to GET /my.server.com/stream|User-Agent=foo.
Thanks for any directions.
Reply

Logout Mark Read Team Forum Stats Members Help
How to change http header0