#46372 closed defect (bug) (invalid)
Missing Proxy Support in Requests/Transport/cURL.php
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 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);
Change History (2)
Note: See
TracTickets for help on using
tickets.
We are using proxy settings in the CURL call. Please refer to https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-wp-http-curl.php#L106.
I am closing this ticket as invalid for now.
@einxperiment, If you wish to reopen the ticket, please reopen this ticket with further clarification.