How to debug a get request in php using curl
问题 I'm trying to make a get request in php using curl. This is what I'm doing: $curl = curl_init(); curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($curl, CURLOPT_USERPWD, "username:password"); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec($curl); curl_close($curl); printf($result); But $result doesn't print out anything, no success or failure message. I've successfully reached the endpoint via postman and in a web