On Tue, Jan 3, 2012 at 6:03 AM, Ralph Shnelvar <ralphs / dos32.com> wrote: > Also, what about reading a few hundred bytes from the flv? using net/http -- something like ruby-1.9.2-p290 :035 > uri = URI('http://localhost/') => #<URI::HTTP:0x00000101861f80 URL:http://localhost/> ruby-1.9.2-p290 :036 > req = Net::HTTP::Get.new(uri.request_uri) => #<Net::HTTP::Get GET> ruby-1.9.2-p290 :037 > req['Range'] = 'bytes=0-99' => "bytes=0-99" ruby-1.9.2-p290 :038 > Net::HTTP.start(uri.host, uri.port) {|http| http.request(req) }.body => "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n "http://www.w3.org/TR/xhtml1/D" ruby-1.9.2-p290 :039 > The above *does* assume that your web server supports the Range header, so YMMV. -- Hassan Schroeder ------------------------ hassan.schroeder / gmail.com http://about.me/hassanschroeder twitter: @hassan