note 33773 modified in ref.curl by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 19:45:10 +0000 |
| Subject: | note 33773 modified in ref.curl by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155263@lists.php.net to get a copy of this message | ||
I managed to use curl to retrieve information from severs on ports other than 80 or 443 (for https)
on some installations but not on all.
If you get an "CURLE_COULDNT_CONNECT /* 7 */" error, try adding the port : (for example)
<?php curl_setopt($ch, CURLOPT_PORT, $_SERVER['SERVER_PORT']); ?>
--was--
I managed to use curl to retrieve information from severs on ports other than 80 or 443 (for https)
on some installations but not on all.
If you get an "CURLE_COULDNT_CONNECT /* 7 */" error, try adding the port : (for example)
curl_setopt($ch, CURLOPT_PORT, $_SERVER['SERVER_PORT']);
http://php.net/manual/en/ref.curl.php