URI.parse errors!

R

Ron Fox

Tim said:
resp = Net::HTTP.get(URI.parse("http:#{img['src']}"))

thats the line that is making this error:

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/uri/common.rb:436:in
`split': bad URI(is not URI?):
http://images.slashdot.org/articles/09/02/03/1620213-1-thumb.png
(URI::InvalidURIError)

How is it invalid? :'(
What are the contents of img['src']... do they include the leading
//'s required to make this a good URI?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top