title: jQuery $.ajax() to PHP CURL
body: <p>I am looking to translate the following into PHP CURL.</p>
  
  <pre><code>$.ajax({
    url:"MY_URL",
    cache: false,
    type: "POST",
    data: "",
    dataType: "xml",
    success: function(data) { 
      alert('Eureka!')
      }
  });
  </code></pre>
  
  <p>I'm particularly interested in figuring out how I have to alter the following to get the dataType set to xml. The following code is not working:</p>
  
  <pre><code>$ch = curl_init('MY_URL');
  curl_setopt($ch, CURLOPT_HEADER, 0); // get the header 
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
  curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1);
  curl_setopt($ch,CURLOPT_HTTPHEADER,array (
        "Content-Type: xml; charset=utf-8",
        "Expect: 100-continue",
        "Accept: xml"
       ));
  </code></pre>
  
  <p>Thanks!</p>