A
Arun Kumar
Hi,
Can anybody please give me the details of how to parse html from a
'https' site using 'net/http'. I came to learn that we can use basic
authentication techniques to do that. But I want to know whether there
is a way other than basic authentication to parse html content from a
https site. I dont want to use any external libraries and i only want to
use 'net/http' and not any parsing libraries like 'Hpricot' etc.. Can
anybody please help me. I will be really greatfull.
N. B.
/usr/lib/ruby/1.8/net/http.rb:560:in `initialize': getaddrinfo: Name or
service not known (SocketError)
from /usr/lib/ruby/1.8/net/http.rb:560:in `open'
from /usr/lib/ruby/1.8/net/http.rb:560:in `connect'
from /usr/lib/ruby/1.8/timeout.rb:53:in `timeout'
from /usr/lib/ruby/1.8/timeout.rb:93:in `timeout'
from /usr/lib/ruby/1.8/net/http.rb:560:in `connect'
from /usr/lib/ruby/1.8/net/http.rb:553:in `do_start'
from /usr/lib/ruby/1.8/net/http.rb:542:in `start'
from example.rb:5
This is the error which i get now when i use 'net/http'.
Regards
Arun Kumar
Can anybody please give me the details of how to parse html from a
'https' site using 'net/http'. I came to learn that we can use basic
authentication techniques to do that. But I want to know whether there
is a way other than basic authentication to parse html content from a
https site. I dont want to use any external libraries and i only want to
use 'net/http' and not any parsing libraries like 'Hpricot' etc.. Can
anybody please help me. I will be really greatfull.
N. B.
/usr/lib/ruby/1.8/net/http.rb:560:in `initialize': getaddrinfo: Name or
service not known (SocketError)
from /usr/lib/ruby/1.8/net/http.rb:560:in `open'
from /usr/lib/ruby/1.8/net/http.rb:560:in `connect'
from /usr/lib/ruby/1.8/timeout.rb:53:in `timeout'
from /usr/lib/ruby/1.8/timeout.rb:93:in `timeout'
from /usr/lib/ruby/1.8/net/http.rb:560:in `connect'
from /usr/lib/ruby/1.8/net/http.rb:553:in `do_start'
from /usr/lib/ruby/1.8/net/http.rb:542:in `start'
from example.rb:5
This is the error which i get now when i use 'net/http'.
Regards
Arun Kumar