title: Execute SOAP using cURL
body: <p>I am trying to execute an SOAP-function using cURL (because I get an error using the SoapClient().</p>
  
  <p>This is my code (that is halfway working)</p>
  
  <pre><code>$credentials = "username:pass"; 
  $url = "https://url/folder/sample.wsdl"; 
  $page = "/folder"; 
  $headers = array( 
      "POST ".$page." HTTP/1.0", 
      "Content-type: text/xml;charset=\"utf-8\"", 
      "Accept: text/xml", 
      "Cache-Control: no-cache", 
      "Pragma: no-cache", 
      "SOAPAction: \"customerSearch\"", 
      "Authorization: Basic " . base64_encode($credentials) 
  ); 
  
  $ch = curl_init(); 
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  curl_setopt($ch, CURLOPT_URL,$url); 
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
  curl_setopt($ch, CURLOPT_TIMEOUT, 60); 
  curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); 
  curl_setopt($ch, CURLOPT_USERAGENT, $defined_vars['HTTP_USER_AGENT']); 
  $data = curl_exec($ch); 
  </code></pre>
  
  <p>The problem is that the SOAP-action is not being performed. And I also need to pass arguments to the action. Is this even possible?</p>