WWW::Mechanize provides cookies, and may be a better solution for your application anyway. It parses HTML and handles context, unlike the lower-level Net::HTTP.
One of them relys on cookies to get the data in a form I can use. Net::HTTP appears not to use cookies, even if you're inside the same .start block.
--
John Labovitz
Macintosh support, research, and software development
John Labovitz Consulting, LLC
johnl@johnlabovitz.com | +1 503.949.3492 | www.johnlabovitz.com/consulting
For those in the future who stumble upon this thread, it was a hacked to death version of this solution that worked for me. I had to hack the cookie jar so that it worked on only the root domain, as it was a domain wide cookie that I needed to use.
WWW:Mechanize looks awesome, but at this time isn't really useable for me. I have enough trouble on my plate without having to maintain my installation of ruby-current; 1.8.2 is not new enough.
Since this solution did work, I'm sure I could study the problem and come up with something better based on the RFC, but I think I'll stick with what I've got.