title: PHP Curl with port number issue
body: <p>This is a problem using PHP with Curl (on hosted server). I am trying to control a remote device (LED state) on port <code>54512</code> (for example). The <code>$url</code> includes the <code>IP:port</code> number concatenated with a short CGI command.</p>
  
  <p>The following is a code fragment;</p>
  
  <pre><code>$sensorIP = "77.134.85.187:54512"; // IP:port format
  
  $url = $sensorIP . "/setParam.cgi?DOStatus_02=0" ; // set E2210 LED off
  
  echo $url; // 
  
  $result =  accessURL ($url); // set LED state on E2210 remote unit  
  </code></pre>
  
  <p>This code times out.  When I use the $url as an address in a web browser it works fine. So the receiving port 54512 is not blocked. When I use <code>IP:80</code> to form <code>$url</code> it works fine (receiving port set to 80).I tried using the <code>CURLOPT_PORT</code> option and the PHP script still times out. </p>
  
  <p>The sending server outgoing HTTP is NOT blocking any port numbers, I checked with my hosting company. They believe I have a programming error, but where? </p>
  
  <p>Thanks!  Al </p>