@Us59

Почему разные данные?

Использую клас сphp-curl-class
Вот сам клас: ссылка

$multi_curl->error(function($instance) use (&$arrayUnSuccess) {
            echo 'call to "' . $instance->myTag["Ip"] . '" and "' . $instance->myTag["type"] . '" was unsuccessful.' . "<br>";
            echo 'error code: ' . $instance->errorCode . "<br>";
            echo 'error message: ' . $instance->errorMessage . "<br>";
});


При выводе Скрипт выводит такое:
call to "159.89.191.89" and "CURLPROXY_SOCKS5" was unsuccessful.
error code: 7
error message: Couldn't connect to server: Failed to connect to 159.89.49.217 port 8080: Connection refused


шТООО думаю я.. если посмотрим внимательно IP разные.. call to .... и error message уже другой IP.

Вот так записываю инфу в myTag.
foreach ($arrayProxy as $proxy) {
            $instance = $multi_curl->addGet('https://ya.org');
            $proxy['type'] = $type;
            $instance->myTag = $proxy;
        }


Помогите разобраться, почему так?

Это multi curl и естественно там сотни запросов, могу показать лог более подробно:
spoiler
call to "159.89.191.89" and "CURLPROXY_HTTP" was unsuccessful.
error code: 7
error message: Couldn't connect to server: Failed to connect to 159.89.49.217 port 8080: Connection refused
call to "34.92.17.104" and "CURLPROXY_HTTP" was unsuccessful.
error code: 7
error message: Couldn't connect to server: Failed to connect to 159.89.49.217 port 8080: Connection refused
call to "67.22.223.9" and "CURLPROXY_HTTP" was unsuccessful.
error code: 7
error message: Couldn't connect to server: Failed to connect to 159.89.49.217 port 8080: Connection refused
call to "159.203.74.183" and "CURLPROXY_HTTP" was unsuccessful.
error code: 7
error message: Couldn't connect to server: Failed to connect to 159.89.49.217 port 8080: Connection refused
call to "159.89.49.217" and "CURLPROXY_HTTP" was unsuccessful.
error code: 7
error message: Couldn't connect to server: Failed to connect to 159.89.49.217 port 8080: Connection refused
call to "159.89.191.89" and "CURLPROXY_SOCKS4" was unsuccessful.
error code: 7
error message: Couldn't connect to server: Failed to connect to 159.89.49.217 port 8080: Connection refused
call to "34.92.17.104" and "CURLPROXY_SOCKS4" was unsuccessful.
error code: 7
error message: Couldn't connect to server: Failed to connect to 159.89.49.217 port 8080: Connection refused
call to "67.22.223.9" and "CURLPROXY_SOCKS4" was unsuccessful.
error code: 7
error message: Couldn't connect to server: Failed to connect to 159.89.49.217 port 8080: Connection refused
call to "159.203.74.183" and "CURLPROXY_SOCKS4" was unsuccessful.
error code: 7
error message: Couldn't connect to server: Failed to connect to 159.89.49.217 port 8080: Connection refused
call to "159.89.49.217" and "CURLPROXY_SOCKS4" was unsuccessful.
error code: 7
error message: Couldn't connect to server: Failed to connect to 159.89.49.217 port 8080: Connection refused
call to "159.89.191.89" and "CURLPROXY_SOCKS5" was unsuccessful.
error code: 7
error message: Couldn't connect to server: Failed to connect to 159.89.49.217 port 8080: Connection refused
call to "34.92.17.104" and "CURLPROXY_SOCKS5" was unsuccessful.
error code: 7
error message: Couldn't connect to server: Failed to connect to 159.89.49.217 port 8080: Connection refused
call to "67.22.223.9" and "CURLPROXY_SOCKS5" was unsuccessful.
error code: 7
error message: Couldn't connect to server: Failed to connect to 159.89.49.217 port 8080: Connection refused
call to "159.203.74.183" and "CURLPROXY_SOCKS5" was unsuccessful.
error code: 7
error message: Couldn't connect to server: Failed to connect to 159.89.49.217 port 8080: Connection refused
call to "159.89.49.217" and "CURLPROXY_SOCKS5" was unsuccessful.
error code: 7
error message: Couldn't connect to server: Failed to connect to 159.89.49.217 port 8080: Connection refused

Из лога видно, что в каждом error message идет 159.89.49.217, а хотя call to идет другой IP.
  • Вопрос задан
  • 104 просмотра
Решения вопроса 1
@AUser0
Чем больше знаю, тем лучше понимаю, как мало знаю.
Ваш SOCK5 прокси вообще не принимает подключение. Разбирайтесь почему.
Или адрес proxy-сервера неправильный, или порт, на котором он должен отвечать
Или он вообще не существует? Ищите...
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы