Get all cookies from a website


#1

Hi all
Once I reach a website, I want to get a list of all the cookies for that
page. When I run this, the ruby scripts just sits and does nothing. How
do you get the cookie and values from a website using cgi gem? Thanks MC

#Once I login to my website, I run this script.

require ‘cgi’
cgi = CGI.new
#cookie = CGI::Cookie.new
puts cgi.cookies
end