How do I set the extra Header ? What is the exact typo ?
You should add the following in /etc/enigma2/settings (init 4 , edit and then init 3)
config.mediaplayer.extraHeaders=Test:1234|Test2:2345Although it does't work and I don't know why.
### in one console where enigma2 runs I see playing 4097:0:1:0:0:0:0:0:0:0:http%3a//headers.cloxy.net/request.php:TestTest < 4624.379695> [eServiceMP3] construct! getResolvedKey config.mediaplayer.extraHeaders failed !! (Typo??) < 4624.385412> [eServiceMP3] playbin uri=http://headers.cloxy.net/request.phpI am getting config.mediaplayer.extraHeaders failed!
I add the following additional values (that control media player user agent) and they worked:
config.mediaplayer.useAlternateUserAgent=true config.mediaplayer.alternateUserAgent=My Enigma2 MediaPlayerThen when staring enigma2 I can see the following traffic in tcpdump (My Enigma2 MediaPlayer is there...)
#### tcpdump -A -s 10240 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' 11:51:53.908825 IP my.local.40929 > 104.18.35.34.http: Flags [P.], seq 3700062484:3700062610, ack 800247666, win 1825, length 126 E.....@.@.dp...ph.#"...P..y./..rP..!.o..GET /request.php HTTP/1.1 Host: headers.cloxy.net Connection: close icy-metadata: 1 User-Agent: My Enigma2 MediaPlayer 11:51:54.068601 IP 104.18.35.34.http > my.local.40929: Flags [P.], seq 1:1032, ack 126, win 29, length 1031 E../c.@.4...h.#"...p.P../..r..y.P.......HTTP/1.1 200 OK Date: Sun, 25 Oct 2015 09:51:54 GMT Content-Type: text/html Transfer-Encoding: chunked Connection: close Set-Cookie: __cfduid=d8679ea96df16dccf36af82df2afdf31b1445766713; expires=Mon, 24-Oct-16 09:51:53 GMT; path=/; domain=.cloxy.net; HttpOnly Cache-Control: max-age=3600 Expires: Sun, 25 Oct 2015 10:51:54 GMT Vary: Accept-Encoding Server: cloudflare-nginx CF-RAY: 23ad068a28932702-FRA 260 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>My Request Headers</title> </head> <body> <h1>Your Request HTTP Headers</h1> <ul> <li>Cf-Connecting-Ip: XX.XX.XX.XX</li> <li>User-Agent: My Enigma2 MediaPlayer</li> <li>Icy-Metadata: 1</li> <li>Cf-Visitor: {"scheme":"http"}</li> <li>X-Forwarded-Proto: http</li> <li>Cf-Ray: 23ad068a28932702-FRA</li> <li>X-Forwarded-For: XX.XX.XX.XX</li> <li>Cf-Ipcountry: GR</li> <li>Accept-Encoding: gzip</li> <li>Connection: close</li> <li>Host: headers.cloxy.net</li> </ul> </body> </html> 11:51:54.068911 IP 104.18.35.34.http > my.local.40929: Flags [P.], seq 1032:1037, ack 126, win 29, length 5 E..-c.@.4...h.#"...p.P../..y..y.P...#...0@OpenPLi, @mx3L, any idea why config.mediaplayer.extraHeaders is not working?
PS. I am trying to open url from bouquets not from plugin.
Edited by athoik, 25 October 2015 - 11:02.