Does anyone know how to properly link with UPS using there online tools via XML? This is what I have:
//I have a valid xml string at this point!
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "https://www.ups.com/ups.app/xml/Rate");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $xmlRequest);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($curl, CURLOPT_HEADER, 1);
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded'));
$result = curl_exec($curl);
echo curl_errno($curl);
echo curl_error($curl);
curl_close($curl);
echo $result;
and everytime I do that I get this:
52Empty reply from server
Does anyone know how to fix this?