We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e46339 commit 5b7bf2fCopy full SHA for 5b7bf2f
1 file changed
src/Arhframe/Util/File.php
@@ -22,10 +22,6 @@ class File
22
* @var
23
*/
24
private $extension;
25
- /**
26
- * @var
27
- */
28
- private $content;
29
/**
30
* @var bool
31
@@ -176,6 +172,12 @@ private function curlGetContent($url)
176
172
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
177
173
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
178
174
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
175
+ curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
+ curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
+ $proxy = Proxy::getProxyHttp();
+ if (!empty($proxy)) {
179
+ curl_setopt($ch, CURLOPT_PROXY, $proxy);
180
+ }
181
$data = curl_exec($ch);
182
curl_close($ch);
183
return $data;
0 commit comments