cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-1547346 ] curl_exec return true with curl_copyhandle

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Sun, 27 Aug 2006 11:06:33 -0700

Bugs item #1547346, was opened at 2006-08-27 02:04
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1547346&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libcurl
Group: wrong behaviour
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: WaaX2 (waax2)
Assigned to: Daniel Stenberg (bagder)
Summary: curl_exec return true with curl_copyhandle

Initial Comment:

curl_exec will always return true if the handle have
been duplicated with curl_copyhandle, even if
CURLOPT_RETURNTRANSFER was set to true.

Repro code:

<?php

// Creating default Curl Handler
$ch_default = curl_init();

// Setting some options
curl_setopt($ch_default, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch_default, CURLOPT_AUTOREFERER, true);
curl_setopt($ch_default, CURLOPT_RETURNTRANSFER, true);

$ch2 = curl_copy_handle($ch_default);
// $ch2 = curl_init();

curl_setopt($ch2, CURLOPT_URL, "http://yahoo.com");

$res = curl_exec($ch2);

var_dump($res);

?>

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2006-08-27 20:06

Message:
Logged In: YES
user_id=1110

These are not libcurl functions, unless you can repeat this
problem with a pure libcurl app I suggest you post your
report to the PHP/CURL people as that's what you're using.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1547346&group_id=976
Received on 2006-08-27

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET