title: Curl error: Failed to connect to splynx.skytrendnetworks.com port 443: No route to host
body: <p>My API is running perfectly in Postman but when I extract the code and try to run It locally or in my Server I get this Error <code>Curl error: Failed to connect to splynx.skytrendnetworks.com port 443: No route to host</code> below is my Code any Help will be appreciated</p>
  <pre><code>    &lt;?php
       $url = 'https://splynx.skytrendnetworks.com/api/2.0/admin/customers/customer';
      
      $curl = curl_init($url);
      curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
      curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
      curl_setopt_array($curl, array(
        CURLOPT_URL =&gt; 'https://splynx.skytrendnetworks.com/api/2.0/admin/customers/customer',
       CURLOPT_RETURNTRANSFER =&gt; true,
        CURLOPT_ENCODING =&gt; '',
        CURLOPT_MAXREDIRS =&gt; 10,
        CURLOPT_TIMEOUT =&gt; 0,
        CURLOPT_FOLLOWLOCATION =&gt; true,
        CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,
        CURLOPT_CUSTOMREQUEST =&gt; 'GET',
        CURLOPT_HTTPHEADER =&gt; array(
          'Authorization: Splynx-EA (key=79 1349da848ee7b1b2faf2cbf8&amp;nonce=28&amp;signature=2A2E6A0AEC50D48C8DAEAvCA8862929681D3678D5B9)',
          'Content-Type: application/json'
        ),
      ));
      curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
      $response = curl_exec($curl);
      if(curl_exec($curl) === false)
      {
          echo 'Curl error: ' . curl_error($curl);
      }
      else
      {
  
      echo $response;
      
          echo 'Operation completed without any errors';
      }
  
  curl_close($curl);
  </code></pre>