Re: who can write a php-script using curl

Thomas Schmiedl <[email protected]> Fri, 4 May 2018 22:46:50 +0200
Newsgroups gmane.comp.web.curl.php
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------A0662FDDA6546FFDDE62D065
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit

The ts-videos and the m3u8-playlist from skyline-webcams are also 
downloadable via 'http', but the m3u8-playlist contains always 
'https'-links. I tested with a small php-script (see attachment) in 
xampp for windows. The issue is, the stream is playable in vlc-player 
only on the first start. When I stop playing and restart playing, it 
doesn't work (also when refreshing the query-string 
(...live.m3u8?a=query-string)).

Other hls-streams can be stopped and played without problems with this 
php-script.

Thanks, Thomas

Am 04.05.2018 um 20:28 schrieb Michael Krier:
> 
> 
> Ok I'm an advanced php developer for 15 years.  I should point out 
> up-front that this is obscure enough that you'd need to pay someone for 
> it. I doubt you'll get this for free.  Just sayin, fyi.  Like, even if 
> someone knows xunpd2, it's a rare skill, and even then, what you want is 
> complicated.
> 
> Curl supports https.  But what you want is to download a file over a 
> stream, not "progressive download".  I bet curl can do it by now, but 
> still, streaming something that big is going to be... flakey.
> 
> Anyway, it's hard to even determine the challenge, let alone the solution.
> 
> Hey that's all I got for now as an off-the-cuff response,
> 
> m
> 
> 
> 
> 
> 
> On 5/4/2018 2:03 PM, Thomas Schmiedl wrote:
>> Hello,
>>
>> I use the xupnpd2 mediaserver (http://xupnpd.org/xupnpd2_en.html; 
>> download: 
>> https://drive.google.com/open?id=0B-F25LE4in_xYjMwME1BODRpdFU) to 
>> transfer some hls-streams to my TV-device.
>>
>> I try to receive this streams in xupnpd2:
>>
>> http://www.skylinewebcams.com/de/webcam/czech-republic/prague/prague/old-town-bridge-tower.html 
>>
>>
>> http://www.earthtv.com/en/webcam/prag-karlsbruecke
>>
>> My older xupnpd2 version doesn't support https and has no proxy 
>> support. The author isn't able to provide a newer release of this 
>> software. My idea is to use curl, but I'm not a developer. Maybe 
>> someone could write a php-script for me (call via a webserver on the 
>> router).
>>
>> For skylinewebcams:
>> 1. xupnpd2 calls the php-script
>> 2. the php-script downloads the m3u8-playlist from skylinewebcams
>> 3. the php-script replaces the URLs to the ts-files in the 
>> m3u8-playlist from 'https://' to 'http://' and returns the file 
>> content to xupnpd2
>>
>> For earthtv:
>> 1. xupnpd2 calls the php-script
>> 2. the php-script downloads the m3u8-playlist from earthtv
>> 3. the php-script replaces the URLs to the ts-files by local URLs to a 
>> maybe second php-script and returns this to xupnpd2
>> 4. xupnpd2 calls the local URLs (second php-script)
>> 5. the second php-script downloads the ts-file (it's necessary to use 
>> additional request-headers -> network-analysis in firefox) and returns 
>> the ts-file to xupnpd2
>>
>> I hope, someone could support me in this issue.
>>
>> Best regards,
>> Thomas
>> _______________________________________________
>> https://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
> 
> 

--------------A0662FDDA6546FFDDE62D065
Content-Type: text/html;
 name="skyline.php"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="skyline.php"

PD9waHANCi8vVGhlIGNVUkwgc3R1ZmYuLi4NCiRjaCA9IGN1cmxfaW5pdCgpOw0KY3VybF9z
ZXRvcHQoJGNoLCBDVVJMT1BUX1VSTCwgJ2h0dHA6Ly9oZGRuMDEuc2t5bGluZXdlYmNhbXMu
Y29tL2xpdmUubTN1OD9hPW9uZ3ByN240YjhuZ25zdDJwbGVmMzJzZ2wxJyk7DQpjdXJsX3Nl
dG9wdCgkY2gsIENVUkxPUFRfSEVBREVSLCAwKTsNCmN1cmxfc2V0b3B0KCRjaCwgQ1VSTE9Q
VF9SRVRVUk5UUkFOU0ZFUiwgMSk7DQpjdXJsX3NldG9wdCgkY2gsIENVUkxPUFRfQklOQVJZ
VFJBTlNGRVIsIDApOw0KJHBpY3R1cmUgPSBjdXJsX2V4ZWMoJGNoKTsNCmN1cmxfY2xvc2Uo
JGNoKTsNCi8vRGlzcGxheSB0aGUgaW1hZ2UgaW4gdGhlIGJyb3dzZXINCmhlYWRlcignQ29u
dGVudC10eXBlOiBhcHBsaWNhdGlvbi94LW1wZWdVUkwnKTsNCmVjaG8gc3RyX3JlcGxhY2Uo
J2h0dHBzOi8vJywgJ2h0dHA6Ly8nLCAkcGljdHVyZSk7DQo/Pg==
--------------A0662FDDA6546FFDDE62D065
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KaHR0cHM6Ly9j
b29sLmhheHguc2UvY2dpLWJpbi9tYWlsbWFuL2xpc3RpbmZvL2N1cmwtYW5kLXBocAo=

--------------A0662FDDA6546FFDDE62D065--