Last active
April 7, 2023 15:20
-
-
Save divinity76/11c35e2c5c16d5166936f8561af6b788 to your computer and use it in GitHub Desktop.
curlopt verbose stackoverflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add CURLOPT_VERBOSE and post the verbose log: ```$stderrh=tmpfile(); | |
curl_setopt_array($ch,array(CURLOPT_VERBOSE=>1,CURLOPT_STDERR=>$stderrh)); | |
curl_exec($ch); | |
/* https://bugs.php.net/bug.php?id=76268 */ | |
rewind($stderrh); | |
$stderr=stream_get_contents($stderrh); | |
fclose($stderrh); | |
var_dump($stderr); | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment