Best tip is to use muffin (a java http proxy) to log the traffic between
your browser
and netflix as a way of decoding the communication - it may be that cookies
are depended on,
For example.
Peter
···
-----Original Message-----
From: Mike Wilson [mailto:wmwilson01@hotmail.com]
Sent: Thursday, January 08, 2004 3:11 PM
To: ruby-talk@ruby-lang.org
Subject: [Semi-OT] http connecting to netflix
I was poking around, thinking about creating something to manipulate my
netflix queue, but I’m having a heck of a time with this. A simple connect
yields “” instead of content.
$ irb
irb(main):001:0> require 'net/http'
=> true
irb(main):002:0> Net::HTTP::Proxy("myproxy", 80).start("www.netflix.com") do
http>
irb(main):003:1* response , = http.get(“/Default”)
irb(main):004:1> end
=> [#<Net::HTTPFound 302 readbody=true>, “”]
No content though. If I substitute “Netflix - Watch TV Shows Online, Watch Movies Online” for
“Slashdot: News for nerds, stuff that matters”, I get content. Additionally, if I do something
like
irb(main):003:1* response , = http.get("/FooBar")
I get the same response ([#<Net::HTTPFound 302 readbody=true>, “”]).
I understand that I’m dealing maybe with servlets or something, but I’m not
sure how to address them (obviously). Just thought someone might be bored
and might have an idea how to do this.
Thanks!
Worried about inbox overload? Get MSN Extra Storage now!
http://join.msn.com/?PAGE=features/es