Answer the question
In order to leave comments, you need to log in
How to substitute the proxy type from the database in curl?
This doesn't work:
curl_setopt($curl, CURLOPT_PROXY, "$proxy_type://$proxy_host:$proxy_port");
so too:
curl_setopt($curl, CURLOPT_PROXYTYPE, "CURLPROXY_$proxy_type");
$proxy_type - socks5 or http proxy type.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question