Hi Lauren, I was able to get your code to work, but I had to change this curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml')); to this: curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/atom+xml', 'Content-Length: ' . strlen($xmlMessage))); I also added these fields: curl_setopt($ch, CURLOPT_USERPWD, 'My API key%my user name:my password');
curl_setopt($ch, CURLOPT_URL, $URL);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); I also replaced the items in the $URL variable that are currently enclosed in angle brackets with the appropriate information. Also ensure that your API key and password are entered correctly and that the URL is correct. Regards,
... View more