summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-09-30 13:27:14 +0400
committerAndrew Dolgov <[email protected]>2013-09-30 13:27:14 +0400
commit05f14a7d19f217619e7d1220ac98f5788316dd2b (patch)
tree58dad93052c96f3220cfa37d912aabb2e12dda8a /include
parentd0ee0f52b720f731f57346747cb16b663aba0771 (diff)
add (undocumented) _CURL_HTTP_PROXY
Diffstat (limited to 'include')
-rw-r--r--include/functions.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/functions.php b/include/functions.php
index 7e08d2296..e9b1270fb 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -379,6 +379,10 @@
curl_setopt($ch, CURLOPT_ENCODING, "");
curl_setopt($ch, CURLOPT_REFERER, $url);
+ if (defined('_CURL_HTTP_PROXY')) {
+ curl_setopt($ch, CURLOPT_PROXY, _CURL_HTTP_PROXY);
+ }
+
if ($post_query) {
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_query);
@@ -4216,6 +4220,10 @@
curl_setopt($curl, CURLOPT_TIMEOUT, 60);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
+ if (defined('_CURL_HTTP_PROXY')) {
+ curl_setopt($curl, CURLOPT_PROXY, _CURL_HTTP_PROXY);
+ }
+
if ((OPENSSL_VERSION_NUMBER >= 0x0090808f) && (OPENSSL_VERSION_NUMBER < 0x10000000)) {
curl_setopt($curl, CURLOPT_SSLVERSION, 3);
}