Recent Changes - Search:

LiveStreamsPro

PmWiki

pmwiki.org

edit SideBar

Headers

Functions.Headers History

Hide minor edits - Show changes to output

June 03, 2016, at 05:27 AM by 222.127.128.226 -
Added lines 18-19:
  <agent />
  <accept />
February 26, 2016, at 04:57 AM by 153.191.181.21 -
Changed lines 40-55 from:
<title>testing headers</title>
<link>$doregex[getPage]</link>
<regex>
<name>getPage</name>
<expres><expres>                                        
<page>http://torrent-tv.ru/torrent-online.php?translation=11642</page>
    <setcookie>BHC=$doregex[getCookie]</setcookie>
    <referer>http://torrent-tv.ru/torrent-online.php?translation=11642</referer>
</regex>

<regex>
<name>getCookie</name>
<expres>x
-bh-token:(.*?)\s<expres>                                          
<page>http://torrent-tv.ru/banhammer/pid</page>
    <includeheaders></includeheaders>

</regex>
to:
    <title>testing headers</title>
   <link>$doregex[getPage]</link>
   <regex>
       <name>getPage</name>
        <expres />
        <page>http://torrent-tv.ru/torrent-online.php?translation=11642</page>
        <setcookie>BHC=$doregex[getCookie]</setcookie>
        <referer>http://torrent-tv.ru/torrent-online.php?translation=11642</referer>
    </regex>
    <regex>
        <name>getCookie<
/name>
       <expres>x-bh-token:(.*?)\s</expres>
       <page>http://torrent-tv.ru/banhammer/pid</page>
        <includeheaders></includeheaders>
    </regex>
Changed lines 61-76 from:
<title>Movistar F1</title>
<link>plugin://plugin.video.p2p-streams/?url=$doregex[hash]&amp;mode=1&amp;name=acestream+title</link>
<regex>
<name>hash</name>
<expres>this.loadPlayer."(.*?)"<expres>                                          
<page>http://torrent-tv.ru/torrent-online.php?translation=11642</page>
    <setcookie>BHC=$doregex[getCookie]</setcookie>
    <referer>http://torrent-tv.ru/torrent-online.php?translation=11642</referer>
</regex>
<regex>
<name>getCookie</name>
<expres>x-bh-token:(.*?)\s<expres>                                          
<page>http://torrent-tv.ru/banhammer/pid</page>
    <includeheaders></includeheaders>
</regex>

<thumbnail></thumbnail>
to:
    <title>Movistar F1</title>
    <link>
plugin://plugin.video.p2p-streams/?url=$doregex[hash]&amp;mode=1&amp;name=acestream+title</link>
   <regex>
       <name>hash</name>
       <expres>this.loadPlayer."(.*?)"</expres>
        <page>http://torrent-tv.ru/torrent-online.php?translation=11642</page>
        <setcookie>BHC=$doregex[getCookie]</setcookie>
        <referer>http://torrent-tv.ru/torrent-online.php?translation=11642</referer>
    </regex>
    <regex>
        <name>getCookie</name>
       <expres>x-bh-token:(.*?)\s</expres>
       <page>http://torrent-tv.ru/banhammer/pid</page>
       <includeheaders></includeheaders>
   
</regex>
    <thumbnail></thumbnail>
February 26, 2016, at 04:55 AM by 153.191.181.21 -
Changed lines 13-17 from:
<name>get-page</name>
<expres>"m3u8_url":"(.*?)"</expres>
<page>http://WebpageAddress.com</page>
<x-forward>1.1.1.2</x-forward>
<referer>http://myref.com</referer>
to:
  <name>get-page</name>
  <expres>"m3u8_url":"(.*?)"</expres>
  <page>http://WebpageAddress.com</page>
  <x-forward>1.1.1.2</x-forward>
  <referer>http://myref.com</referer>
Changed lines 19-80 from:
(:sourcend:)
to:
(:sourcend:)
\\\

[+HTTP response headers are also supported in the page response using the includeheaders directive+]
\\\
Following is the sample which returns the fill html, its not playable as it just demostrate that how you can get the header and create cookie. The log file should tell the full html.\\
The format will be like:\\
[@
$$HEADERS_START$$:HEADERNAME:HEADERVALUE
HEADERNAME:HEADERVALUE
HEADERNAME:HEADERVALUE
HEADERNAME:HEADERVALUE
$$HEADERS_END$$:
@]
\\
The problem is accept Header which they are checking and returning blank, so LSPRO passes the accept param like this in the regex:\\
<accept>*/*</accept>

Example 1:\\
(:source lang=xml:)
<item>
<title>testing headers</title>
<link>$doregex[getPage]</link>
<regex>
<name>getPage</name>
<expres><expres>                                         
<page>http://torrent-tv.ru/torrent-online.php?translation=11642</page>
    <setcookie>BHC=$doregex[getCookie]</setcookie>
    <referer>http://torrent-tv.ru/torrent-online.php?translation=11642</referer>
</regex>

<regex>
<name>getCookie</name>
<expres>x-bh-token:(.*?)\s<expres>                                         
<page>http://torrent-tv.ru/banhammer/pid</page>
    <includeheaders></includeheaders>
</regex>
</item>
(:sourcend:)
\\
Example 2:\\
(:source lang=xml:)
<item>
<title>Movistar F1</title>
<link>plugin://plugin.video.p2p-streams/?url=$doregex[hash]&amp;mode=1&amp;name=acestream+title</link>
<regex>
<name>hash</name>
<expres>this.loadPlayer."(.*?)"<expres>                                         
<page>http://torrent-tv.ru/torrent-online.php?translation=11642</page>
    <setcookie>BHC=$doregex[getCookie]</setcookie>
    <referer>http://torrent-tv.ru/torrent-online.php?translation=11642</referer>
</regex>
<regex>
<name>getCookie</name>
<expres>x-bh-token:(.*?)\s<expres>                                         
<page>http://torrent-tv.ru/banhammer/pid</page>
    <includeheaders></includeheaders>
</regex>
<thumbnail></thumbnail>
</item>
(:sourcend:)

February 26, 2016, at 04:47 AM by 153.191.181.21 -
Changed line 5 from:
So in the link element the syntax would be <link>http://UrlToTheMedia|X-Forwarded-For=IpAddress</link>
to:
So in the link element the syntax would be [@<link>http://UrlToTheMedia|X-Forwarded-For=IpAddress</link>@]
Changed lines 7-10 from:
However, in the regex section, you have to add x-forward tag (Get 1.3.0 i just added that)
for example,

to:
However, in the regex section, you have to add for example the x-forward and referer tags like this:
\\

Example:
(:source lang=xml:)
Added line 17:
<referer>http://myref.com</referer>
Added line 19:
(:sourcend:)
February 26, 2016, at 04:45 AM by 153.191.181.21 -
Changed lines 3-5 from:
Headers for final url are already natively supported by xbmc/kodi via the pipe  '''|''' sign, so the syntax would be [@http://UrlToTheMedia|Header1=Values1&Header2=Value2@].\\\ So in the link element the syntax would be <link>http://UrlToTheMedia|X-Forwarded-For=IpAddress</link>
to:
Headers for final url are already natively supported by xbmc/kodi via the pipe  '''|''' sign, so the syntax would be [@http://UrlToTheMedia|Header1=Values1&Header2=Value2@].
\\\
So in the link element the syntax would be <link>http://UrlToTheMedia|X-Forwarded-For=IpAddress</link>
February 26, 2016, at 04:44 AM by 153.191.181.21 -
Added lines 1-14:
[+HTTP request headers are supported for regex blocks and for the final url inside the link element+]
\\\
Headers for final url are already natively supported by xbmc/kodi via the pipe  '''|''' sign, so the syntax would be [@http://UrlToTheMedia|Header1=Values1&Header2=Value2@].\\\ So in the link element the syntax would be <link>http://UrlToTheMedia|X-Forwarded-For=IpAddress</link>
\\\
However, in the regex section, you have to add x-forward tag (Get 1.3.0 i just added that)
for example,


<regex>
<name>get-page</name>
<expres>"m3u8_url":"(.*?)"</expres>
<page>http://WebpageAddress.com</page>
<x-forward>1.1.1.2</x-forward>
</regex>
Edit - History - Print - Recent Changes - Search
Page last modified on June 03, 2016, at 05:27 AM
www.000webhost.com