[wp-trac] [WordPress Trac] #46372: Missing Proxy Support in Requests/Transport/cURL.php
WordPress Trac
noreply at wordpress.org
Thu Feb 28 11:14:06 UTC 2019
#46372: Missing Proxy Support in Requests/Transport/cURL.php
--------------------------+-----------------------------
Reporter: einxperiment | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: HTTP API | Version: 5.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
A Request via wp_remote_get() tries to connect directly to the external
URL and returns "cURL error 28: Connection timed out after 10000
milliseconds". During research i found the reason in the
Requests/Transport/cURL.php because it ignores the WP_PROXY settings from
the config.php.
solution/workaround:
{{{#!php
//added
curl_setopt( $this->handle, CURLOPT_PROXY, 'proxy.xxx.de' );
curl_setopt( $this->handle, CURLOPT_PROXYPORT, 80 );
curl_exec($this->handle);
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46372>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list