title: NuSoap without cUrl
body: <p>I have to send data to a SOAP with a big inconvenience. <strong>I cannot use cUrl</strong>.</p>
  
  <p>Here's a part of my code, which is pretty much a nuSoap sample.</p>
  
  <pre><code> $wsdl = "wsdl address";
  
  $proxyhost = isset($_POST['proxyhost']) ? $_POST['proxyhost'] : '';
  $proxyport = isset($_POST['proxyport']) ? $_POST['proxyport'] : '';
  $proxyusername = isset($_POST['proxyusername']) ? $_POST['proxyusername'] : '';
  $proxypassword = isset($_POST['proxypassword']) ? $_POST['proxypassword'] : '';
  $useCURL = isset($_POST['usecurl']) ? $_POST['usecurl'] : '0';
  
  $client = new nusoap_client($wsdl, 'wsdl', $proxyhost, $proxyport, $proxyusername, $proxypassword);
  
  $client-&gt;soap_defencoding = 'UTF-8'; 
  $client-&gt;decode_utf8 = false;
  $client-&gt;setUseCurl($useCURL);
  
  $err = $client-&gt;getError();
  
  if ($err) {
      echo '&lt;h2&gt;Constructor error&lt;/h2&gt;&lt;pre&gt;' . $err . '&lt;/pre&gt;';
  }
  
  $param = array('credentials'=&gt;array('user'=&gt;'user', 'passwd'=&gt;'passwd'));
  $result = $client-&gt;call('Autenticate', array('parameters' =&gt; $param), '', '', false, true);
  
  if ($client-&gt;fault) {
          echo '&lt;h2&gt;Fault&lt;/h2&gt;&lt;pre&gt;';
          print_r($result);
          echo '&lt;/pre&gt;';
  } else {
          // Check for errors
          $err = $client-&gt;getError();
          if ($err) {
                  // Display the error
                  echo '&lt;h2&gt;Error&lt;/h2&gt;&lt;pre&gt;' . $err . '&lt;/pre&gt;';
          } else {
                  // Display the result
                  echo '&lt;h2&gt;Result&lt;/h2&gt;&lt;pre&gt;';
                  print_r($result);
                  echo '&lt;/pre&gt;';
          }
  }
  echo '&lt;h2&gt;Request&lt;/h2&gt;&lt;pre&gt;' . htmlspecialchars($client-&gt;request, ENT_QUOTES) . '&lt;/pre&gt;';
  echo '&lt;h2&gt;Response&lt;/h2&gt;&lt;pre&gt;' . htmlspecialchars($client-&gt;response, ENT_QUOTES) . '&lt;/pre&gt;';
  echo '&lt;h2&gt;Debug&lt;/h2&gt;&lt;pre&gt;' . htmlspecialchars($client-&gt;debug_str, ENT_QUOTES) . '&lt;/pre&gt;';
  </code></pre>
  
  <p>Whenever I have cURL enable in server, it works. When I haven't, I got this</p>
  
  <pre><code>wsdl error: Getting wsdl address - HTTP ERROR: The PHP cURL Extension is required for HTTPS or NLTM.  You will need to re-build or update your PHP to include cURL or change php.ini to load the PHP cURL extension.
  </code></pre>
  
  <p>Has someone gone through this?</p>
  
  <p>Thanks in advance</p>