Net::HTTP and numerical adress

U

Une Bévue

if i use :
Net::HTTP.start('http://88.183.xyz.uvw')
with numerical (i don't have a domain name)
i get an error :

essais/download_files.rb:16: no .<digit> floating literal anymore; put 0
before dot
http://88.183.xyz.uvw
^

does it mean Net:HTTP wants to translate the numbers given ?
being somehow a bug for an address right ?
 
U

Une Bévue

Une Bévue said:
does it mean Net:HTTP wants to translate the numbers given ?
not at all, i wasn't reading the right line...
sorry for the noise

however it seems Net::HTTP can't download a file from an unregistered
domain :
/opt/local/lib/ruby1.9/1.9.1/net/http.rb:581:in `initialize':
getaddrinfo: nodename nor servname provided, or not known (SocketError)
 
B

Brian Candler

Une said:
not at all, i wasn't reading the right line...
sorry for the noise

however it seems Net::HTTP can't download a file from an unregistered
domain :

Net::HTTP.start doesn't take a url, it takes a hostname and optional
port.
=> #<Net::HTTPOK 200 OK readbody=true>
 

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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top