Bug #63057 [Opn]: problem in cUrl with CURLOPT_PRIVATE and CURLINFO_PRIVATE
| From: | rasmus@php.net | Date: | Tue, 11 Sep 2012 05:18:03 +0000 |
| Subject: | Bug #63057 [Opn]: problem in cUrl with CURLOPT_PRIVATE and CURLINFO_PRIVATE | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-173310@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63057&edit=1
ID: 63057
Updated by: rasmus@php.net
Reported by: stefanos at cpan dot org
Summary: problem in cUrl with CURLOPT_PRIVATE and
CURLINFO_PRIVATE
Status: Open
Type: Bug
Package: cURL related
Operating System: Debian Linux 6.0.5
PHP Version: 5.3.16
Block user comment: N
Private report: N
New Comment:
PHP 5.3.16/5.4.6 w/ Curl 7.22
Next - 666 - 404 - 0.543194 Sec - Request http://www.kb-gaming.com/
Next - 64 - 200 - 0.759856 Sec - Request http://www.sd-p.ch/
Next - 600 - 200 - 0.555988 Sec - Request http://richardschwab.de/
Next - 620 - 200 - 0.769565 Sec - Request https://www.google.de/
Previous Comments:
------------------------------------------------------------------------
[2012-09-11 04:59:56] stefanos at cpan dot org
maybe a libcurl issue, can you test this with newer cUrl version?
7.15.5 is very old (year 2006)
------------------------------------------------------------------------
[2012-09-11 04:19:18] laruence@php.net
I can not reproduce this, maybe a libcurl issue?
cURL support => enabled
cURL Information => 7.15.5
------------------------------------------------------------------------
[2012-09-10 21:21:40] stefanos at cpan dot org
Description:
------------
Currently, while using a testscript with curl_multi, the option CURLOPT_PRIVATE (per curl_setopt)
isn't stored correctly, is getting messed up or can't be retrieved properly with
curl_getinfo($curl,CURLINFO_PRIVATE). The result with multiple URLs is that the last entry (in this
example 620) is used instead of 64, 666, 600.
cUrl version 7.27.0
Now where exactly is the error? Script? cURL? PHP?
Test script:
---------------
More as 20 lines, see the url:
http://pastebin.com/raw.php?i=dascV5Xv
Expected result:
----------------
Next - 64 - 404 - 0.061303 Sec - Request http://www.kb-gaming.com/
Next - 666 - 200 - 0.057142 Sec - Request http://www.sd-p.ch/
Next - 600 - 200 - 0.032915 Sec - Request http://richardschwab.de/
Next - 620 - 200 - 0.326081 Sec - Request https://www.google.de/
Actual result:
--------------
Next - - 404 - 0.061303 Sec - Request http://www.kb-gaming.com/
Next - 620 - 200 - 0.057142 Sec - Request http://www.sd-p.ch/
Next - 620 - 200 - 0.032915 Sec - Request http://richardschwab.de/
Next - 620 - 200 - 0.326081 Sec - Request https://www.google.de/
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63057&edit=1