From: Doug Bromley Date: 2006-05-24T06:13:24+09:00 Subject: Get and Post Combined ? ------=_Part_97306_30270897.1148418800657 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello I've got a bit of a problem interacting with the Overture (now YSM) API and I'm getting quite desperate for some help. Basically I need to 'post' form data to a path containing get variables. Unfortunately I can't go into details about the API as its held under an ND= A for some strange reason but please try and help from some of this similar code: #--------------------------------------------------------------------------= ------------------------- 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(URI.parse (@full_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. #--------------------------------------------------------------------------= ------------------------- When I try using this class, rather than getting the XML reply I get the HTML form located at the servers route. Which is as if the get variables i= n the path are being shaved off and its failing to post the data correctly. As you can see I also have to use the service over SSL and send a header fo= r the content-type. I'd be extremely greatful if anyone can shed any light because I'm going mad. I've searched on Google and the groups to no avail so I'm all ears. Many thanks for reading. Doug ------=_Part_97306_30270897.1148418800657--