|  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: 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]
Example script:

<?php /* -*- mode: c++; minor-mode: font -*- */ 
$url = '';
$curld = curl_init();
curl_setopt($curld, CURLOPT_URL, $url);
curl_setopt($curld, CURLOPT_RETURNTRANSFER, true);
echo curl_getinfo($curld, CURLINFO_EFFECTIVE_URL);

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.


Add a Patch

Pull Requests

Add a Pull Request


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

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