I am trying to pass data from a form and then post that data to a server in the form of a variable (xml)
the problem is that curl wants to parse the variable xml which contains = so it thinks that I actually have more than one post field
anyone know a way around this or know of a better way of posting xml data to web servers
the server IS expecting one fariable xml.
here is what I have written:
$data = "<xml><steve version='1.0' partner_name='steve bushcemi'>his name</steve></xml>
$ch = curl_init('http://hostname/script.php');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "xml=$data");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$returnDATA = curl_exec($ch);
print $returnDATA;
thanks...
justin