-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set CURLOPT_RETURNTRANSFER => true
on default
#18
Comments
|
Hey, thanks for your report. Are you using the latest version of version of yii2/curl? Which cURL Version are you using? I will reopen this bug if we are able to reproduce it. |
Hi Linslin, cURL Version: linslin/Yii2-Curl version:
Okay. |
Thanks, could you send me a debug output of |
Oops! sorry my bad. Used
array(7) { [10036]=> string(3) "GET" [20011]=> object(Closure)#115 (3) { ["static"]=> array(1) { ["body"]=> &string(0) "" } ["this"]=> object(linslin\yii2\curl\Curl)#116 (4) { ["response"]=> NULL ["responseCode"]=> NULL ["_options":"linslin\yii2\curl\Curl":private]=> array(2) { [10036]=> string(3) "GET" [20011]=> RECURSION } ["_defaultOptions":"linslin\yii2\curl\Curl":private]=> array(5) { [10018]=> string(15) "Yii2-Curl-Agent" [13]=> int(30) [78]=> int(30) [19913]=> bool(false) [42]=> bool(false) } } ["parameter"]=> array(2) { ["$curl"]=> string(10) "" ["$data"]=> string(10) "" } } [10018]=> string(15) "Yii2-Curl-Agent" [13]=> int(30) [78]=> int(30) [19913]=> int(0) [42]=> int(0) }
array(7) { [10036]=> string(3) "GET" [20011]=> object(Closure)#115 (3) { ["static"]=> array(1) { ["body"]=> &string(0) "" } ["this"]=> object(linslin\yii2\curl\Curl)#116 (4) { ["response"]=> NULL ["responseCode"]=> NULL ["_options":"linslin\yii2\curl\Curl":private]=> array(2) { [10036]=> string(3) "GET" [20011]=> RECURSION } ["_defaultOptions":"linslin\yii2\curl\Curl":private]=> array(5) { [10018]=> string(15) "Yii2-Curl-Agent" [13]=> int(30) [78]=> int(30) [19913]=> bool(true) [42]=> bool(false) } } ["parameter"]=> array(2) { ["$curl"]=> string(10) "" ["$data"]=> string(10) "" } } [10018]=> string(15) "Yii2-Curl-Agent" [13]=> int(30) [78]=> int(30) [19913]=> bool(true) [42]=> bool(false) } Works fine now without |
👍 |
Using version 1.0.4. Faced same problem. Fixed by adding |
Hey @irthunder, thanks for your report. I tried to reproduce it, but with 1.0.4 seems all fine here. Could you take a look at the top of your
Is |
Hi, @linslin |
Please check this answer: #22 (comment). Does it effect you? |
It looks like. I'm using GET / response code = 200. |
So it does work for you by using |
It does work as i described above - it's returning requested only if |
Allright, thx so far. I check this behavior tomorrow. Please stand by. |
Hey @irthunder, so here we are. It looks like this bug was reported before but descriped different. This should be fixed right now for verson 1.0.5 @ #19. Could you checkout the |
Hi, @linslin Tried 1.0.5 - it's OK, Thank you. |
Set
CURLOPT_RETURNTRANSFER => true
on defaultThe text was updated successfully, but these errors were encountered: