Page 1 of 1

how to connect to a VLC http generated stream

Posted: 28 Sep 2010 11:58
by zodiak
Hello All,

I wrote a PC application that streams a file through http via VLC. I also made a client program running on a PC that connects to that stream and plays it. All is well with what I just described.

I now would like to use a non-VLC based http client to read the same stream.

The equipment I'm using allows me to connect to http servers but I need to write the full http client request string (like "GET filename"). On my client PC application - because it's VLC based - I write http://myserver:8080 and it "magically" starts playing the stream. How can I know the underlying http message exchange protocol? Is there a default filename that clients request?

I hope this is clear enough, please let me know if I need to explain it better.

TIA for all the help,
Cheers,
Rui

Re: how to connect to a VLC http generated stream

Posted: 28 Sep 2010 13:47
by zodiak
used a network sniffer:

the client sends:

GET / HTTP/1.1
Host: 192.168.11.3:8080
User-Agent: vlc/1.1.0 LibVLC/1.1.0
Range: bytes=0-
Icy-MetaData: 1

I'll try starting with sending GET / HTTP/1.1; is the rest needed?

Cheers,
Rui