title: Unable to make php curl request with port number
body: <p>I am unable to  make a php curl request with port number , without port number i am getting response properly.</p>
  
  <p>Through terminal when i do  curl <a href="http://www.sample.com:8088" rel="noreferrer">http://www.sample.com:8088</a>  i am getting response back properly. But not through php curl on doing curl_inf()
   i am getting </p>
  
  <pre><code>Array ( [url] =&gt; http://www.sample.com:8088/ [content_type] =&gt; [http_code] =&gt; 0 [header_size] =&gt; 0 [request_size] =&gt; 0 [filetime] =&gt; 0 [ssl_verify_result] =&gt; 0 [redirect_count] =&gt; 0 [total_time] =&gt; 0 [namelookup_time] =&gt; 0 [connect_time] =&gt; 0 [pretransfer_time] =&gt; 0 [size_upload] =&gt; 0 [size_download] =&gt; 0 [speed_download] =&gt; 0 [speed_upload] =&gt; 0 [download_content_length] =&gt; -1 [upload_content_length] =&gt; -1 [starttransfer_time] =&gt; 0 [redirect_time] =&gt; 0 [certinfo] =&gt; Array ( ) ) 
  </code></pre>
  
  <p>My code </p>
  
  <pre><code>$url = "http://www.sample.com:8088/";
  
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL,$url);
  curl_setopt($ch, CURLOPT_TIMEOUT, 400);
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, True);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, True);
  $report=curl_getinfo($ch);
  print_r($report);
  $result = curl_exec($ch);
  curl_close($ch);
  echo $result;
  </code></pre>
  
  <p>this code give me response from ubuntu  , but not giving response from cent os if port number is specified.</p>
  
  <p>Please let me know the how to fix it.</p>
  
  <p>THanks in advance.</p>