D
D
Dmitriy2019-08-26 01:45:03
PHP
Dmitriy, 2019-08-26 01:45:03

How to send a proxy?

$ch = curl_init('http://www.bestchange.ru/qiwi-to-zcash.html');
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  curl_setopt($ch, CURLOPT_PROXY, '46.4.96.137');
  curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);

  curl_close($ch);

I send a proxy like this, tell me if it's wrong.
I send to the hosting, but what confuses me, when I sent with this proxy ( 188.130.134.3:46546 ), this ip and status appeared in outgoing hosting connections ( rejected ), but with the one that does not add above.
Problem: when parsing, SP gets banned due to a large number of requests.
How to send a proxy?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2019-08-26
@dimonchik2013

curl_setopt($ch, CURLOPT_PROXY, '46.4.96.137'); either add a port here or separately have a proxyport

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question