hi,
#<Net::HTTP google.com:80 open=true>
I get this by using
p http
now i want to get “google.com” from it how can i get?
Thanks,
hi,
#<Net::HTTP google.com:80 open=true>
I get this by using
p http
now i want to get “google.com” from it how can i get?
Thanks,
Read /usr/lib/ruby/1.8/net/http.rb (or wherever it is on your system),
it has examples at the top.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs