Subject: Re: Extra CR chars inserted into a downloaded file
From: Logan Capaldo <logancapaldo gmail.com>
Date: Sat, 27 May 2006 06:57:26 +0900
References: 194726
In-reply-to: 194726
On May 26, 2006, at 9:39 AM, Nate Morse wrote:
> open("http://localhost/test/test.txt") {|f|
> f.each_line {|line| p line}
> p f.content_type
> p f.charset + '\n'
>
> }
Have we tried:
open("http://localhost/test/test.txt", 'rb') { |f|
...etc...
}