From: Eric Hodel Date: 2004-11-12T03:31:07+09:00 Subject: Re: How to POST HEADERS along with COOKIES --6FinHCQBQ0zFDOqT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Edwin Eyan Moragas (haaktu@gmail.com) wrote: > On Thu, 11 Nov 2004 15:55:16 +0900, Daun Jaun wro= te: > > Hi > > can any one please tell me how to post cookies; shud it be placed in th= e header > > and if so in what format; > >=20 > > ckyArr =3D ... # suppose i have an array of CGI::Cookie objects > >=20 > > hdr['cookie']=3D unKnownFunc( ckyArr ) > >=20 > > h=3DNet::HTTP.new( ... ) > >=20 > > resp,body =3D h.post( path, query, hdr ) > > # path has a program that expects cookies > > # if cookies are not present or not in desired format it gives > > # paramter format error : and access is denied > >=20 > > To make this work what shud be unKnownFunc ..? > >=20 > > Please some one help ; my whole project depends on this primarily ... ;= -) >=20 > http://raa.ruby-lang.org/project/http-access2/ Yes, you really want to use http-access2, it does more of the heavy lifting for you. --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --6FinHCQBQ0zFDOqT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQFBk6/oMypVHHlsnwQRAj74AJoDJTGi1bN1Ib5JTUQamOzws/WrqACg+WEL tYn6DyIfwxzfo/Mvk4safqA= =iI3d -----END PGP SIGNATURE----- --6FinHCQBQ0zFDOqT--