PHP 4.0 Bug #7579 Updated: curl_getinto() returns garbage for effective url
| From: | torben@php.net | Date: | Sun, 05 Nov 2000 21:47:17 +0000 |
| Subject: | PHP 4.0 Bug #7579 Updated: curl_getinto() returns garbage for effective url | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-37205@lists.php.net to get a copy of this message | ||
ID: 7579
Updated by: torben
Reported By: torben@php.net
Status: Closed
Bug Type: cURL related
Assigned To:
Comments:
Yup, seems to work very nicely. Thanks.
Previous Comments:
---------------------------------------------------------------------------
[2000-11-05 12:17:17] sterling@php.net
This should be fixed in CVS...
Try it out, and let me know
---------------------------------------------------------------------------
[2000-11-01 20:46:46] torben@php.net
Example script:
<?php /* -*- mode: c++; minor-mode: font -*- */
error_reporting(E_ALL);
$url = 'http://www.php.net';
$curld = curl_init();
curl_setopt($curld, CURLOPT_URL, $url);
curl_setopt($curld, CURLOPT_RETURNTRANSFER, true);
curl_exec($curld);
echo curl_getinfo($curld, CURLINFO_EFFECTIVE_URL);
curl_close($curld);
?>
Output (typical):
ÄÜwall or eat it for lunch. Welcome to
the world of Open Source software!
Smile, be happy, the world is good. For the full legalese, see the
official license.
Year 2000 Compliance
Ë@ Á@H(`¨@C compiler or yoH@ûY@NK@äÿ¿c¸G
Curl version in use: 7.4.1.Echoing the return value from
curl_exec() in the above example shows the correct data.
curl_errno() returns -1073749044.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7579