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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: torben@php.net
New email:
PHP Version: OS:

 

 [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: Tue Mar 31 13:01:24 2020 UTC