I’m testing the http module in console.
BUt I got the following error.
Anyone knows why?
Net::HTTP.get_print ‘www.google.com’, ‘index.html’
SystemStackError: stack level too deep
from C:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:451:in
newobj' from C:/InstantRails/ruby/lib/ruby/1.8/net/http.rb:451:in
newobj’
from C:/InstantRails/ruby/lib/ruby/1.8/net\http.rb:451:innew' from C:/InstantRails/ruby/lib/ruby/1.8/net\http.rb:374:in
get_response’
from C:/InstantRails/ruby/lib/ruby/1.8/net\http.rb:337:in
`get_print’
from (irb):2
THX