#34567 [Opn->Bgs]: Outputs "Cannot find server"
| From: | marcot@php.net | Date: | Tue, 20 Sep 2005 19:46:50 +0000 |
| Subject: | #34567 [Opn->Bgs]: Outputs "Cannot find server" | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-85296@lists.php.net to get a copy of this message | ||
ID: 34567
Updated by: marcot@php.net
Reported By: sheffmail at mail dot ru
-Status: Open
+Status: Bogus
Bug Type: cURL related
Operating System: Linux
PHP Version: 4.4.0
New Comment:
We are aware of PHP's problems with stability under IIS and are working
to rectify the problem. Unfortunatly your bug report does not contain
any
extra useful information and we already have enough bug reports open
about
this issue. If you can provide more detailed information such as a
reproducable crash or a backtrace please do so and reopen this bug.
Otherwise please keep trying new releases as we are working to resolve
the problems on this platform
Thanks for your interest in PHP.
Works fine on my Linux system -- It looks like you might have a DNS
problem on your machine, or perhaps an old version of cUrl. What
happens if you run curl from the shell?
curl http://www.mtsu.edu/~devstud2/DSM080.html
If you get the same error, then the problem is not with PHP. If you do,
try comparing the version of the cUrl library that is being used by the
command-line tool (curl -V) and the one that's being by php (php -i or
phpinfo()).
Previous Comments:
------------------------------------------------------------------------
[2005-09-20 19:54:06] sheffmail at mail dot ru
Description:
------------
I have a script which suppose to output remote page's content, but it
doesn't.
I have an assumption that it happens because the location pointed to by
URL in the script returns 'Location:' header and redirects to another
page + using port different from 80. On Linux OS it outputs "Cannot
find server", on Windows it works OK and outputs the page. How can I
make it work in Linux ? Or if it's not because of OS, then why does it
occur and how could this be fixed?
Reproduce code:
---------------
set_time_limit(0);
$ch = curl_init();
curl_setopt($ch,CURLOPT_FOLLOWLOCATION,true);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch,CURLOPT_MAXREDIRS,100);
curl_setopt($ch,CURLOPT_URL,"http://www.mtsu.edu/~devstud2/DSM080.html");
$buffer = curl_exec($ch);
if (curl_errno($ch) == CURLE_OK )
{
echo $buffer;
}
else
{
echo "no";
}
curl_close($ch);
Expected result:
----------------
The content of the page
Actual result:
--------------
The script just breaks without printing "no" or error or warning, some
times giving "Cannot find server" error.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34567&edit=1