title: cURL posting xml : getting Error Message: Generic Error
body: <p>I have the following code, to send XML data to a web service, 
  I keep getting this error message  [GENERIC ERROR] as a resopnse
  I searched well, and couldn't find where is the error,</p>
  
  <p>I am not sending from an SSL enabled website, and I have cURL enabled,</p>
  
  <pre><code>&lt;?php
  include "curl.php";
  $xml2 = "&lt;CC5Request&gt;
  &lt;Name&gt;esttest&lt;/Name&gt;
  &lt;Password&gt;EST741852&lt;/Password&gt;
  &lt;ClientId&gt;4444&lt;/ClientId&gt;
  &lt;Mode&gt;P&lt;/Mode&gt;
  &lt;OrderId&gt;8e8d031cb20a9d274f4ae3ccd0516053&lt;/OrderId&gt;
  &lt;Type&gt;Auth&lt;/Type&gt;
  &lt;Number&gt;4242424242424242&lt;/Number&gt;
  &lt;Expires&gt;10/09&lt;/Expires&gt;
  &lt;Cvv2Val&gt;000&lt;/Cvv2Val&gt;
  &lt;Total&gt;4.72&lt;/Total&gt;
  &lt;UserId&gt;ismail&lt;/UserId&gt;
  &lt;Currency&gt;949&lt;/Currency&gt;
  &lt;email&gt;imengubeti@est.com&lt;/email&gt;
  &lt;BillTo&gt;
  &lt;Name&gt;ismail&lt;/Name&gt;
  &lt;Street1&gt;deneme&lt;/Street1&gt;
  &lt;City&gt;adfs&lt;/City&gt;
  &lt;PostalCode&gt;06700&lt;/PostalCode&gt;
  &lt;Country&gt;792&lt;/Country&gt;
  &lt;TelVoice&gt;0_312_446_50_07&lt;/TelVoice&gt;
  &lt;/BillTo&gt;
  &lt;ShipTo&gt;
  &lt;Name&gt;ismail&lt;/Name&gt;
  &lt;Street1&gt;deneme&lt;/Street1&gt;
  &lt;City&gt;&lt;/City&gt;
  &lt;PostalCode&gt;06700&lt;/PostalCode&gt;
  &lt;Country&gt;792&lt;/Country&gt;
  &lt;/ShipTo&gt;
  &lt;Extra&gt;
  &lt;/Extra&gt;
  &lt;/CC5Request&gt;";
  
  $URL = "https://url/cc5ApiServer";
  
  $ch = curl_init($URL);
  curl_setopt($ch, CURLOPT_MUTE, 1);
  curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  curl_setopt($ch, CURLOPT_POST, 1);
  curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml'));
  curl_setopt($ch, CURLOPT_POSTFIELDS, "$xml2");
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  $output = curl_exec($ch);
  if(curl_errno($ch))
      print curl_error($ch);
  else
      print_r($output);
  curl_close($ch);
  
  
  
  
  ?&gt;
  </code></pre>