Prev: [ANN] Ember 0.3.0
Next: Ruby Assocations
From: =?ISO-8859-1?Q?Une_B=E9vue?= on 27 Apr 2010 01:35 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 ? -- � Je me suis mari� deux fois : deux catastrophes. Ma premi�re femme est partie, la deuxi�me est rest�e. � (Francis Blanche)
From: =?ISO-8859-1?Q?Une_B=E9vue?= on 27 Apr 2010 01:40 Une B�vue <unbewusst.sein(a)google.com.invalid> wrote: > 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) -- � Je me suis mari� deux fois : deux catastrophes. Ma premi�re femme est partie, la deuxi�me est rest�e. � (Francis Blanche)
From: Brian Candler on 27 Apr 2010 06:06 Une Bévue wrote: > Une B�vue <unbewusst.sein(a)google.com.invalid> wrote: > >> 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 : Net::HTTP.start doesn't take a url, it takes a hostname and optional port. >> res = Net::HTTP.start('216.239.59.147') { |h| h.get('/') } => #<Net::HTTPOK 200 OK readbody=true> -- Posted via http://www.ruby-forum.com/.
From: =?ISO-8859-1?Q?Une_B=E9vue?= on 27 Apr 2010 09:50 Brian Candler <b.candler(a)pobox.com> wrote: > Net::HTTP.start doesn't take a url, it takes a hostname and optional > port. > > >> res = Net::HTTP.start('216.239.59.147') { |h| h.get('/') } > => #<Net::HTTPOK 200 OK readbody=true> OK, thanks ! -- � Je me suis mari� deux fois : deux catastrophes. Ma premi�re femme est partie, la deuxi�me est rest�e. � (Francis Blanche)
|
Pages: 1 Prev: [ANN] Ember 0.3.0 Next: Ruby Assocations |