HTTP IO??

H

Horacio Sanson

I am developing a streaming client in ruby, so far so good... now I am trying
to get Net::HTTP to behave like an IO with no luck. I need Net::HTTP to read
the headers as it usually does but stop at before reading the body of the
page so I can read the stream in chunks and feed them to the player.

I read this article

http://redhanded.hobix.com/inspect/...ntAdventuresInContinuationsAndDuckTyping.html

but I can't get it to work.

any help is appreciated.....

Horacio
 
R

Robert Klemme

Horacio said:
I am developing a streaming client in ruby, so far so good... now I
am trying to get Net::HTTP to behave like an IO with no luck. I need
Net::HTTP to read the headers as it usually does but stop at before
reading the body of the page so I can read the stream in chunks and
feed them to the player.

I read this article

http://redhanded.hobix.com/inspect/...ntAdventuresInContinuationsAndDuckTyping.html

but I can't get it to work.

any help is appreciated.....

open-uri can help you - although you won't see headers

Kind regards

robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
DewittMill
Top