From: Vivek Nallur Date: 2004-01-30T15:07:31+09:00 Subject: Re: Net::http.get has a 50K limit? Just a small change required. |require "net/http" |begin | Net::HTTP.start("www.washingtonpost.com", 80){ |http| | response , = http.get("/wl/jobs/JS_JobSearch?TS=1012409733026") File.open("/some/file/","wb+"){|f| resp, = http.get(url, nil){|gotit| f.print(gotit) } } | data=response.body ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The data is not part of the response any more. This behaviour has changed from ruby 1.6 regs Vivek | puts data.length | } |rescue => err | puts "Error: #{err}" | exit |end | |The last line returns 52166 . (the file is considerable bigger) What did I |do wrong? | | | | -- Accept that some days you are the pigeon and some days the statue