L
lrlebron
I am trying to use open-uri to open the following url
http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-4.html#%_toc_start
and I'm getting the following error
:/ruby/lib/ruby/1.8/uri/common.rb:436:in `split': bad URI(is not
URI?): http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-4.html#%_toc_start
(URI::InvalidURIError)
from c:/ruby/lib/ruby/1.8/uri/common.rb:485:in `parse'
from c:/ruby/lib/ruby/1.8/open-uri.rb:29:in `open'
from mitbook.rb:14
However, the url works fine in the browser.
thanks,
Luis
http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-4.html#%_toc_start
and I'm getting the following error
:/ruby/lib/ruby/1.8/uri/common.rb:436:in `split': bad URI(is not
URI?): http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-4.html#%_toc_start
(URI::InvalidURIError)
from c:/ruby/lib/ruby/1.8/uri/common.rb:485:in `parse'
from c:/ruby/lib/ruby/1.8/open-uri.rb:29:in `open'
from mitbook.rb:14
However, the url works fine in the browser.
thanks,
Luis