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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
23 + 29 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 18:02:40 2024 UTC