How can I connect to a Tor hidden service using cURL in PHP?

Locked. Comments on this question have been disabled, but it is still accepting new answers and other interactions. Learn more. I’m trying to connect to a Tor hidden service using the following PHP code: $url=”http://jhiwjjlqpyawmpjx.onion/” $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_PROXY, “http://127.0.0.1:9050/”); curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5); $output = curl_exec($ch); $curl_error = … Read more