Czy dodanie do pliku /modules/Base/EssClient/ClientRequester.php do funkcji curl_call:
curl_setopt($ch, CURLOPT_PROXY, "http://proxy.example.com"); //your proxy url
curl_setopt($ch, CURLOPT_PROXYPORT, "8080"); // your proxy port number
curl_setopt($ch, CURLOPT_PROXYUSERPWD, "username:pass"); //username:pass
Rozwiąże problem?
Funkcja wygląda tak:
protected function curl_call($post_data) {
$ch = curl_init($this->server);
curl_setopt($ch, CURLOPT_VERBOSE, 0);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_TIMEOUT, $this->connection_timeout);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
<<<<<<< TUTAJ >>>>>>
curl_setopt($ch, CURLOPT_REFERER, self::get_referer());
$output = curl_exec($ch);
$errno = curl_error($ch);
$response_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($errno != '') {
throw new ErrorException("cURL error: $errno");
}
if ($response_code == '404') {
throw new ErrorException("Server not available!");
}
if ($response_code == '403') {
throw new ErrorException("Authentication failed!");
}
return $output;
}