WordPress.org

Make WordPress Core

Changeset 13484


Ignore:
Timestamp:
02/28/10 04:24:04 (4 years ago)
Author:
dd32
Message:

Support non-BASIC Authentication schemes in the HTTP API if server supports them. Props ssandison, See #4011, Fixes #12200

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-http.php

    r13448 r13484  
    12101210            if ( $proxy->use_authentication() ) { 
    12111211                $options['proxyauth'] = $proxy->authentication(); 
    1212                 $options['proxyauthtype'] = HTTP_AUTH_BASIC; 
     1212                $options['proxyauthtype'] = HTTP_AUTH_ANY; 
    12131213            } 
    12141214        } 
     
    13211321            if ( $proxy->use_authentication() ) { 
    13221322                if ( $isPHP5 ) 
    1323                     curl_setopt( $handle, CURLOPT_PROXYAUTH, CURLAUTH_BASIC ); 
     1323                    curl_setopt( $handle, CURLOPT_PROXYAUTH, CURLAUTH_ANY ); 
    13241324 
    13251325                curl_setopt( $handle, CURLOPT_PROXYUSERPWD, $proxy->authentication() ); 
     
    14641464 * enable proxy support. There are also a few filters that plugins can hook into for some of the 
    14651465 * constants. 
     1466 * 
     1467 * Please note that only BASIC authentication is supportted by most transports. 
     1468 * cURL and the PHP HTTP Extension MAY support more methods(such as NTLM Authentication) depending on your environment. 
    14661469 * 
    14671470 * The constants are as follows: 
Note: See TracChangeset for help on using the changeset viewer.