From: Doug Bromley Date: 2006-05-24T07:29:46+09:00 Subject: Re: Get and Post Combined ? ------=_Part_98291_14159732.1148423383701 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hell. Apologies. Thats a typo. The variables are the same. #--------------------------------------------------------------------------= ------------------------- host =3D "secure.ysm1.com" port =3D 443 now =3D Date::today() yday =3D @now - 1 #The path with its get variables path =3D "/index.jhtml?_ARGS=3D/index.jhtml" xml =3D "XML Encoded POST Data" site =3D Net::HTTP.new(@host, 443) site.use_ssl =3D true enc_text =3D "xml=3D" << CGI.escape(@xml) resp, data =3D site.post (path,enc_text,{"Content-Type"=3D>"application/x-www-form-urlencoded"}) puts data # Should print XML formatted result but instead displays route of that server (the form HTML) as if no data was sent. #--------------------------------------------------------------------------= ------------------------- On 5/23/06, Tim Becker wrote: > > > #The path with its get variables > > path =3D "/index.jhtml?_ARGS=3D/index.jhtml" > > Called `path` here... > > ... > > > > site =3D Net::HTTP.new(@host, 443) > > enc_text =3D "xml=3D" << CGI.escape(@xml) > > > > resp, data =3D site.post(URI.parse > > > (@full_path),enc_text,{"Content-Type"=3D>"application/x-www-form-urlencod= ed"}) > > and `@full_path` here. Are you sure it's the same variable? > -tim > > ------=_Part_98291_14159732.1148423383701--