Cookie support in Net::HTML?

Hi,
I think this is what you’re looking for:

require ‘net/http’

h = Net::HTTP.new(‘www.demanding.com’, 80)
resp, data = h.get(‘/index.html’, ‘Cookie’ => ‘foo’ )

Regards,
Barry

···

-----Original Message-----
From: jamcleat [mailto:cerenkov7@hotmail.com]
Sent: Thursday, September 12, 2002 4:59 AM
To: ruby-talk@ruby-lang.org
Subject: cookie support in Net::HTML?

Does anyone know of way to read pages
from a web site which demands cookie
support? I looked in Net::HTML
without success.