php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7579 curl_getinto() returns garbage for effective url
Submitted: 2000-11-01 20:46 UTC Modified: 2000-11-05 16:47 UTC
From: torben@php.net Assigned:
Status: Closed Package: cURL related
PHP Version: 4.0 Latest CVS (01/11/2000) OS: Mandrake 7.0
Private report: No CVE-ID: None
 [2000-11-01 20:46 UTC] 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 yo??H@?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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-05 12:17 UTC] sterling@php.net
This should be fixed in CVS...

Try it out, and let me know
 [2000-11-05 16:47 UTC] torben@php.net
Yup, seems to work very nicely. Thanks.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Feb 20 11:01:24 2020 UTC