Opened 6 years ago
#46372 new defect (bug)
Missing Proxy Support in Requests/Transport/cURL.php
Reported by: | einxperiment | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 5.1 |
Component: | HTTP API | Keywords: | |
Focuses: | Cc: |
Description
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:
//added
curl_setopt( $this->handle, CURLOPT_PROXY, 'proxy.xxx.de' );
curl_setopt( $this->handle, CURLOPT_PROXYPORT, 80 );
curl_exec($this->handle);
Note: See
TracTickets for help on using
tickets.