Make WordPress Core

Opened 7 years ago

Closed 5 months ago

Last modified 5 weeks ago

#46372 closed defect (bug) (invalid)

Missing Proxy Support in Requests/Transport/cURL.php

Reported by: einxperiment's profile einxperiment 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)

#1 @pmbaldha
5 months ago

  • Resolution set to invalid
  • Status changed from new to closed

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.

#2 @swissspidy
5 weeks ago

  • Milestone Awaiting Review deleted

Removing milestone from closed ticket.

Note: See TracTickets for help on using tickets.