curl Failed to connect Connection refused curl Failed to connect Connection refused curl curl

curl Failed to connect Connection refused


Looked at https://gustavostraube.wordpress.com/2016/08/31/debugging-requests-with-curl/;

/* * We're going to use the output buffer to store the debug info. */ob_start();$out = fopen('php://output', 'w');$handler = curl_init($url);/* * Here we set the library verbosity and redirect the error output to the  * output buffer. */curl_setopt($handler, CURLOPT_VERBOSE, true);curl_setopt($handler, CURLOPT_STDERR, $out);curl_setopt($handler, CURLOPT_RETURNTRANSFER, true);$response = curl_exec($handler);fclose($out);/* * Joining debug info and response body. */$data = ob_get_clean();$data .= PHP_EOL . $response . PHP_EOL;echo $data;

Review / post the output for $out to determine next steps; If you can, you should attempt to run curl on the command prompt with the '-vvv' options to get similar output.