Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
URI.parse errors!
Tim Mcd
2/4/2009 3:20:00 AM
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...
(URI::InvalidURIError)
How is it invalid? :'(
--
Posted via
http://www.ruby-...
.
1 Answer
Ron Fox
2/4/2009 11:31:00 AM
0
Tim Mcd wrote:
> 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...
> (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?
--
Ron Fox
NSCL
Michigan State University
East Lansing, MI 48824-1321
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
URI.parse errors!
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password