"Harry Ohlsen" <harryo / qiqsolutions.com> wrote in message news:3F5D1667.9080200 / qiqsolutions.com... > Ila'n Terrell wrote: > > > /usr/lib/ruby/1.6/net/protocol.rb:221:in `error!': 302 "Moved > > > I am pretty new to ruby and I don't have the slightest clue what "Moved > > Temporarily" means. I have tried this on multiple platforms and get the > > same error. Any ideas? > > That's an HTTP error code; I don't believe it has anything to do > with the Ruby code, other than that it's passing on what the web server sent it. Yes, but if you run it using ruby 1.8.0 it does not throw any error, just displays the HTTP error (along with some warnings). On Windows XP Pro (using /\ndy's one-click installer) ---------------------------------------------------------------------------- C:\atest>type tst_http2.rb #!/usr/bin/ruby require 'net/http' pages = %w( www.rubycentral.com www.awl.com www.pragmaticprogrammer.com ) threads = [] for page in pages threads << Thread.new(page) { |myPage| h = Net::HTTP.new(myPage, 80) puts "Fetching: #{myPage}" resp, data = h.get('/', nil ) puts "Got #{myPage}: #{resp.message}" } end threads.each { |aThread| aThread.join } C:\atest>ruby -v tst_http2.rb ruby 1.8.0 (2003-08-04) [i386-mswin32] Fetching: www.rubycentral.com Fetching: www.awl.com Fetching: www.pragmaticprogrammer.com net/http: warning: old style assignment found at tst_http2.rb:15 Got www.rubycentral.com: OK net/http: warning: old style assignment found at tst_http2.rb:15 Got www.awl.com: Moved Temporarily net/http: warning: old style assignment found at tst_http2.rb:15 Got www.pragmaticprogrammer.com: OK C:\atest>