Click here to Skip to main content
15,886,788 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hello

I want to capture streaming video

so I saw URL Getter software and it is good because it gave me the streaming link.

then I tried to make one my self so I used PcapDotNet library on vb.net 2010

finally I got the link on that code >>
VB
If packet.Ethernet.IpV4.Tcp.Payload IsNot Nothing Then
                   Dim text = Encoding.Default.GetString(packet.Ethernet.IpV4.Tcp.Payload.ToMemoryStream().ToArray())
                   Dim match = Regex.Match(text.ToLower(), "(?<=[get|post])\s(?<Path>/.*?)[\?\s].*?http/1\.1.*?host:\s(?<Host>[A-Za-z0-9\-\.]*)", RegexOptions.Singleline)

                       MyStr = match.Groups("Host").Value & match.Groups("Path").Value


               End If

but it doesn't work because I realize that URL Getter get the link with the parameters ..

so My software get the link like this >> http://www.MySite.com/stream
but URL Getter get it like this >> http://www.MySite.com/stream?ID=0001


so how can I get the link with the paramters ????
Posted
Comments
DamithSL 30-Jun-14 22:05pm    
what is the value you get as text?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900