Hi, I'm new to Ruby and new to using open-uri.  But I think I found a
bug.  Could someone take a look at this and if this is really a bug,
tell me who to report it to?
 
 
Thanks,
Todd.
 
Here's my little code snippet:
 

====== code starts ======
 
require 'open-uri'
 
string =
"http://www.infospace.com/home/redirect.htm?formfrom=qsearch&pgtarg=dire
ctory&wqhqn=2&qhqn="
string += "Bubba+Ray+Jackson&qc=Broomfield&qs=co"
 
puts "\nI'm going to try to open this: #{string}\n\n"
 
#
# This call throws a URI::InvalidURIError.  Is that a bug?  
# Looking at the error message, I THINK open_uri is following
# a redirection and somehow mis-parsing the new URI such that
# an erroneous space is inserted.
#
uri = open(string)

====== code ends ====== 
 

And here's the output:
 

I'm going to try to open this:
http://www.infospace.com/home/redirect.htm?formfrom=qsearch
&pgtarg=directory&wqhqn=2&qhqn=Bubba+Ray+Jackson&qc=Broomfield&qs=co
 
c:/ruby/lib/ruby/1.8/uri/common.rb:432:in `split': bad URI(is not URI?):
http://kevdb.info
space.com/home/white-pages/kevdb?kcfg=wpus&otmpl=%2Fwhite-pages%2Fresult
s.htm&qfm=n&qk=10&
top=1&qname=Bubba+Ray+Jackson&qf=Bubba&qn=Ray&qs=co&searchtype=citystate
&QN=Jackson&QF=Bub
ba Ray&qc=Broomfield (URI::InvalidURIError)
        from c:/ruby/lib/ruby/1.8/uri/common.rb:481:in `parse'
        from c:/ruby/lib/ruby/1.8/open-uri.rb:572:in `proxy_open'
        from c:/ruby/lib/ruby/1.8/open-uri.rb:525:in `direct_open'
        from c:/ruby/lib/ruby/1.8/open-uri.rb:169:in `open_loop'
        from c:/ruby/lib/ruby/1.8/open-uri.rb:164:in `catch'
        from c:/ruby/lib/ruby/1.8/open-uri.rb:164:in `open_loop'
        from c:/ruby/lib/ruby/1.8/open-uri.rb:134:in `open_uri'
        from c:/ruby/lib/ruby/1.8/open-uri.rb:424:in `open'
        from c:/ruby/lib/ruby/1.8/open-uri.rb:85:in `open'
        from open-uri-bug.rb:14