K
K
khodos_dmitry2017-05-14 13:05:35
Parsing
khodos_dmitry, 2017-05-14 13:05:35

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 question

Ask a Question

731 491 924 answers to any question