From: Chad Perrin Date: 2011-04-30T06:58:47+09:00 Subject: Re: How do I read HTTP POST XML sent to CGI? --jI8keyz6grp/JLjh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 30, 2011 at 06:54:36AM +0900, Ting Chang wrote: > Thanks all, does that mean if I POST >=20 > apple > ipad >=20 > in the HTTP Client then I can read it in my cgi as: >=20 > #!/usr/bin/ruby >=20 > require 'cgi' > cgi =3D CGI.new > h =3D cgi.params # =3D> {"customer"=3D>["apple"],"product"=3D>["ipad"]} > h['customer'] # =3D> ["apple"] > h['product'] # =3D> ["ipad"] Show us an example of how you're posting the data. --=20 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] --jI8keyz6grp/JLjh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk27MYIACgkQ9mn/Pj01uKX8VACdGhrhrQf7uvNq4kNe8uANmRom 4VAAnjMg419DBI/ZWKX2IgzvgtxU33Ft =dDyP -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh--