[wp-trac] [WordPress Trac] #31232: Invalid value for curl option CURLOPT_PROXYAUTH in wp-includes/class-http.php

WordPress Trac noreply at wordpress.org
Wed Feb 4 15:23:43 UTC 2015


#31232: Invalid value for curl option CURLOPT_PROXYAUTH in wp-includes/class-
http.php
---------------------------+-----------------------------
 Reporter:  beier.michael  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  HTTP API       |    Version:  4.1
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 Hi,

 in class-http.php CURLOPT_PROXYAUTH is set to CURLAUTH_ANY:

 {{{
                         if ( $proxy->use_authentication() ) {
                                 curl_setopt( $handle, CURLOPT_PROXYAUTH,
 CURLAUTH_ANY);
                                 curl_setopt( $handle,
 CURLOPT_PROXYUSERPWD, $proxy->authentication() );
                         }
 }}}

 According to http://php.net/manual/en/function.curl-setopt.php for proxy
 authentication, only CURLAUTH_BASIC and CURLAUTH_NTLM are currently
 supported.

 Using a proxy requiring authentication is not possible due to this error.

 Can you please fix this.

 Best regards,
 Michael

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31232>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list