WP_PROXY_* settings are not used for curl requests
-
For security reasons we don’t allow direct outgoing http requests. All requests to external servers have to be made through a proxy server. WordPress offers the two options WP_PROXY_HOST and WP_PROXY_PORT to support this. But those settings are not taken into account when requests are made from the sociable plugin.
I added the following code for the curl requests i found in includes/async_request.php, includes/skyscraper_output.php and includes/sociable_output.php.
if (defined('WP_PROXY_HOST')) { curl_setopt($ch, CURLOPT_PROXY, WP_PROXY_HOST); } if (defined('WP_PROXY_PORT')) { curl_setopt($ch, CURLOPT_PROXYPORT, WP_PROXY_PORT); }
- The topic ‘WP_PROXY_* settings are not used for curl requests’ is closed to new replies.