From: Arturo 'Buanzo' Busleiman Date: 2004-12-26T04:49:04+09:00 Subject: Net::HTTPResponse extracting name=value from "set-cookies" --------------050108040907040507020608 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi! I have this String, gotten from the set-cookies value of an HTTPResponse (from a post call): KEY1=VALUE1; Path=/, KEY2=VALUE2; Domain=.somedomain.net; Expires=Mon, 24-Jan-2005 19:40:10 GMT; Path=/, KEY3=VALUE3; Domain=e-messenger.net; Expires=Mon, 24-Jan-2005 19:40:10 GMT; Path=/ How can I extract each KEY,VALUE pair? I'm currently TRYING to use the scan String method, but I've never been that good with regular expressions... any help? Bye and thanks! - -- Arturo "Buanzo" Busleiman - www.buanzo.com.ar - GNU/Linux Documentation President, Open Information System Security Group - Argentina In the darkest night, If my memory serves me right, I'll never turn back time, Forgetting you, but not the time (Green Day, Whatsername) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBzcQiAlpOsGhXcE0RAtpAAJ9Bije4yVbx18NkWueTZKiUq3c5AwCeI5vW ZBkt+G9EOQJiX4hn9p/msUY= =Jr2a -----END PGP SIGNATURE----- --------------050108040907040507020608 Content-Type: text/x-vcard; charset=utf-8; name="buanzo.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="buanzo.vcf" begin:vcard fn:Arturo 'Buanzo' Busleiman n:Busleiman;Arturo org:OISSG adr:;;;;BA;;Argentina email;internet:buanzo@buanzo.com.ar x-mozilla-html:FALSE url:http://www.buanzo.com.ar version:2.1 end:vcard --------------050108040907040507020608--