From: Doug Bromley Date: 2006-05-24T19:44:31+09:00 Subject: Re: Get and Post Combined ? ------=_Part_106311_651761.1148467467568 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I didn't think it would be possible to sniff it with it being SSL? On 5/23/06, Tim Becker wrote: > > Is the server under your control? Can you be certain that the server > isn't just returning the form even though you're posting data? My next > step would be to check what actually gets sent to the server using a > sniffer. > -tim > > On 5/24/06, Doug Bromley wrote: > > 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_106311_651761.1148467467568--