Is this the correct way to use CURL (via PHP) to issue requests with a proxy?
$url ="https://www.website.com";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 20);
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, true);
curl_setopt($ch, CURLOPT_PROXY, "Proxy:Port");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
$response = curl_exec($ch);
\ "; if ($response === false) { echo "cURL Error: ", curl_error($ch); } else { echo $response; } //obtain: cURL time: 1s \ cURL Error: TCP connection reset by peer – antrez770 Nov 27 '18 at 10:04