OK, I'd suggest that you explain what is broken about the headers,
and we ask _why if he can roll out a fix on the raisin series for the
time being.  We know he's frantically busy on all sorts of stuff, but
a new patched version of raisins would be nice.  The Shoes news page
has been rather quiet over recent weeks, so it would let people know
things are still going on behind the scenes. 

        Hugh

On Thu, 16 Apr 2009, e deleflie wrote:

> Check this out:
> 
> if I run the below code on Windows, Shoes eventually gives me a
> "SocketError: Hostname not known":
> 
> #!shoes
> require 'net/http'
> Shoes.app{
>  para "Net::HTTP gives: "
>  begin
>     para Net::HTTP.get
> URI.parse('http://ambiboots.audio.s3.amazonaws.com/etienne/test.txt')
>  rescue => e
>     para e.inspect
>  end
> }
> 
> Then, the first time I ran the below code (on Windows), the download
> version works .... but the Net::HTTP one doesn't!
> 
> I ran it again, and both worked.
> 
> then I ran just the net:http version, and it didn't work again.
> 
> #!shoes
> require 'net/http'
> Shoes.app{
>  para "Net::HTTP gives: "
>  begin
>     para Net::HTTP.get
> URI.parse('http://ambiboots.audio.s3.amazonaws.com/etienne/test.txt')
>  rescue => e
>     para e.inspect
>  end
> 
>  para "download gives: "
>  begin
>     download "http://ambiboots.audio.s3.amazonaws.com/etienne/test.txt";
> do |content|
>               para content.response.body
>       end     
>  rescue => e
>     para e.inspect
>  end
> }
> 
> By itself, the download method works fine and fast everytime.
> 
> ......... there's gotta be a difference with how net:http resolves
> stuff and download ... maybe its some locking thing (_why has talked
> about net::http locking stuff).
> 
> problem is .... download:headers are broken in raisins (otherwise I
> could just use that).
> 
> Etienne
> 

Reply via email to