title: why curl time out does not work
body: <p>I am developing this application that connects(using NUSOAP) to a web service in order to retrieve the content.
  When i submit the XML to the web service i get connected but the response take more than 30 seconds to reply. I have tried couple changes but the script still ends at 30 seconds mark with the following message(from the Nusoap object):
  cURL ERROR: 28: Operation timed out after 30015 milliseconds with 0 bytes received</p>
  
  <p>this is the code(part of it) i am using:</p>
  
  <pre><code>$ch = curl_init();
      curl_setopt($ch, CURLOPT_TIMEOUT, 0);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
      curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
      $client = new nusoap_client ( $this-&gt;getCreditcheckUrl(), true,false, false, false, false, 0, 300);
  
      $client-&gt;soap_defencoding = 'utf-8';
      $client-&gt;decode_utf8 = false;
      $client-&gt;operation = 'contentOrder';
      $client-&gt;useHTTPPersistentConnection (); // Uses http 1.1 instead of
      // 1.0
      $client-&gt;setUseCurl ( true );
      $client-&gt;loadWSDL ();
      $client-&gt;portName = "PrepareOrderPort";
  
      $client-&gt;setCredentials ( "", "", "certificate", array (
              // "cainfofile" =&gt; $sslPath . $caPath , //OPTIONAL
              "sslcertfile" =&gt; self::sslPath . self::sslcert,
              "sslkeyfile" =&gt; self::sslPath . self::sslcert,
              "passphrase" =&gt; "xxxxxxxxx",
              "certpassword" =&gt; "xxxxxxxx", // OPTIONAL
              "verifypeer" =&gt; False, // OPTIONAL
              "verifyhost" =&gt; 1  // OPTIONAL
      ) );
      $client-&gt;send($xmlRequest);
  
      $contentRaw = $client-&gt;responseData;
  </code></pre>
  
  <p>Is there a way to force to only stop when it gets a response?</p>
  
  <p>Any help is greattly appreciated, i have been fighting this for weeks.</p>
  
  <p>thank you.</p>