On Wed, May 30, 2007 at 11:25:26AM +0900, Sy Ys wrote:
> I am able to login to a website at authenticate.domain.com but when I
> attempt to visit panel.domain.com it appears the http session has been
> lost.
> Code:
> Net::HTTP.start('authenticate.domain.com',80){|http|
> log = http.post('script.php',params)
> puts log.body
> }
> Net::HTTP.start('panel.domain.com',80){|http|
> puts http.get('/index.cfm').body
> }
> --------
> So, what could be the problem? Either the second Net::HTTP.start call is
> beginning a new session or the first call is forgetting a vital cookie.
> Anyone? Thanks!
Net::HTTP doesn't save your cookies. If you'd like to have your cookies