Forum: Ruby get all cookies from a website

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Mmcolli00 M. (Guest)
on 2009-06-08 23:44
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
This topic is locked and can not be replied to.