protected function _configureCurl() { $ch = parent::_configureCurl(); $xml = $this->getPayload(); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $xml); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/atom+xml;type=entry', 'Content-Length: ' . strlen($xml))); return $ch; }