{"id":9092116,"date":"2017-05-03T09:44:24","date_gmt":"2017-05-03T09:44:24","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/adding-proxy-2\/"},"modified":"2017-05-03T09:44:24","modified_gmt":"2017-05-03T09:44:24","slug":"adding-proxy-2","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/adding-proxy-2\/","title":{"rendered":"Adding Proxy"},"content":{"rendered":"<p>Hey,<\/p>\n<p>after a couple of hours searching for a problem with curl connection problems, I just want to give you the recommendation to use the WordPress constant <code>WP_PROXY_HOST<\/code> and <code>WP_PROXY_PORT<\/code> in class\/xq_maileon.php:<\/p>\n<pre><code>\/**\n * Gets the Maileon configuration\n *\n * @return array MaileonConfiguration\n *\/\nprivate static function get_maileon_config() {\n    $config = array(\n        &#039;API_KEY&#039; =&gt; get_option(&quot;API_KEY&quot;),\n        &#039;BASE_URI&#039; =&gt; get_option(&quot;BASE_URI&quot;)\n    );\n    if (defined(&#039;WP_PROXY_HOST&#039;)){\n        $config += array(&#039;PROXY_HOST&#039; =&gt; WP_PROXY_HOST);\n    }\n    if (defined(&#039;WP_PROXY_PORT&#039;)){\n        $config += array(&#039;PROXY_PORT&#039; =&gt; WP_PROXY_PORT);\n    }\n    return $config;\n}<\/code><\/pre>\n<p>Regards<\/p>\n<p>Pascal<\/p>\n","protected":false},"template":"","class_list":["post-9092116","topic","type-topic","status-publish","hentry","topic-tag-proxy"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9092116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/9092116\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=9092116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}