ID: 34567 Updated by: [EMAIL PROTECTED] Reported By: sheffmail at mail dot ru -Status: Bogus +Status: Open Bug Type: cURL related Operating System: Linux PHP Version: 4.4.0 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip I can't reproduce this. If you still get the problem with 5.1-dev, let us know what curl version you have, what configure options you used, etc. Previous Comments: ------------------------------------------------------------------------ [2005-09-20 21:46:48] [EMAIL PROTECTED] 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()). ------------------------------------------------------------------------ [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
