Mojo::URL (install Mojolicious to get it) seems to parse that URL fine:

perl -MMojo::URL -le '$a = Mojo::URL->new(q{rtmp://eurolive.fc.llnwd.net/eurolive/s_768x576_905_adaptive1?e=1376382853&h=f08c3ee7811e3565d2451b913b266e5c}); print join qq{\n}, $a->protocol, $a->host, $a->path, $a->query; '

prints:
rtmp
eurolive.fc.llnwd.net
/eurolive/s_768x576_905_adaptive1
e=1376382853&h=f08c3ee7811e3565d2451b913b266e5c


On 08/13/2013 12:14 PM, Chanan Berler wrote:
Hi All,

Does anyone knows a way to parse RTMP urls? into segements?
I tried using URI::URL but if fails :(
cannot extract full path, schema.....

URL Sample:

rtmp://eurolive.fc.llnwd.net/eurolive/s_768x576_905_adaptive1?e=1376382853&h=f08c3ee7811e3565d2451b913b266e5c


Regards

Chanan


--
===================
----     Chanan Berler    ----
===================


_______________________________________________
Perl mailing list
Perl@perl.org.il
http://mail.perl.org.il/mailman/listinfo/perl


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


_______________________________________________
Perl mailing list
Perl@perl.org.il
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to