From: leon du Date: 2007-10-01T12:50:44+09:00 Subject: Re: how to handle cookie with ruby ------=_Part_4830_10457584.1191210637641 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline thanks a lot, mechanize seemed to be the solution :) 2007/9/30, mortee : > > leon du wrote: > > Hi all, I dont know how to handle cookie with ruby. > > the problem is I want to fetch content from a website which need login > > first. > > I use the http.post to do the login and seemed works well, but when I > went > > to the index page, still I got the login first message. > > so, any suggestions? > > I guess you should try e.g. Mechanize: > > http://mechanize.rubyforge.org/mechanize/ > > which is designed for just this kind of thing. > > > ------=_Part_4830_10457584.1191210637641--