From: Albert Chou Date: 2003-02-06T12:36:26+09:00 Subject: Re: How to handle multiple "set-cookie" headers This is a multi-part message in MIME format. ------_=_NextPart_001_01C2CD90.B4D003D2 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable You could .split() the string that's in that entry. I actually did some more serious modification of Net::HTTP for other purposes, but I don't think I did anything special to deal with multiple Set-Cookie headers, because I wasn't really concerned with them. Al > ---------- > From: Matt Lawrence > Reply To: ruby-talk@ruby-lang.org > Sent: Tuesday, February 4, 2003 1:21 PM > To: ruby-talk ML > Subject: How to handle multiple "set-cookie" headers >=20 > I'm trying to write an automated web tool that will fetch data for me. >=20 > The site I'm getting data from returns multiple "set-cookie" headers > which=20 > are then appended into a single hash entry. How do I split the > various=20 > cookies back up? This is using 1.6.7 and net/http. >=20 > Thanks, > Matt Lawrence >=20 >=20 >=20 >=20 ------_=_NextPart_001_01C2CD90.B4D003D2 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: How to handle multiple "set-cookie" headers

You could .split() = the string that's in that entry.  I actually did some more serious = modification of Net::HTTP for other purposes, but I don't think I did = anything special to deal with multiple Set-Cookie headers, because I = wasn't really concerned with them.

Al

----------
From:   Matt Lawrence
Reply To: =       ruby-talk@ruby-lang.org
Sent:   Tuesday, February 4, 2003 1:21 PM
To:     = ruby-talk ML
Subject: =        How = to handle multiple "set-cookie" headers

I'm trying to write an automated web = tool that will fetch data for me. 
The site I'm getting data from = returns multiple "set-cookie" headers which
are then appended into a single hash = entry.  How do I split the various
cookies back up?  This is using = 1.6.7 and net/http.

Thanks,
Matt Lawrence




------_=_NextPart_001_01C2CD90.B4D003D2--