title: Failed to connect to host port 88: Conection Refused
body: <p>I`m trying to get a JSON information in a remote server with CURL but for some reason the server is refusing my connection.</p>
  
  <p>I already tried many posts here, but with no success...</p>
  
  <p>Return:
  Failed to connect to host port 88: Connection Refused
  Failed to get contents.</p>
  
  <pre><code>    $url = 'http://example.com:88/page.php';
  
      $ch = curl_init();
      curl_setopt ($ch, CURLOPT_URL, $url);
      curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 5);
      curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
      $response = curl_exec($ch);
      if (curl_errno($ch)) {
          echo curl_error($ch);
          echo "\n&lt;br /&gt;";
          $response = '';
      } else {
          curl_close($ch);
      }
  
      if (!is_string($response) || !strlen($response)) {
          echo "Failed to get contents.";
          $contents = '';
      }
  
      print_r($response);exit;  
  </code></pre>
  
  <p>Is there any configuration on the remote server that might be blocking the connection?</p>
  
  <p>I can open the URL and get all contents in my browser.</p>
  
  <p>Any help would be great.</p>
  
  <p>Thanks</p>