WP_HTTP_Proxy::authentication_header
Retrieve header string for proxy authentication.
Method of the class: WP_HTTP_Proxy{}
No Hooks.
Returns
String.
Usage
$WP_HTTP_Proxy = new WP_HTTP_Proxy(); $WP_HTTP_Proxy->authentication_header();
Changelog
| Since 2.8.0 | Introduced. |
WP_HTTP_Proxy::authentication_header() WP HTTP Proxy::authentication header code WP 7.0
public function authentication_header() {
return 'Proxy-Authorization: Basic ' . base64_encode( $this->authentication() );
}