WP_HTTP_Proxy::authentication_header()publicWP 2.8.0

Retrieve header string for proxy authentication.

Method of the class: WP_HTTP_Proxy{}

No Hooks.

Return

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() code WP 6.1.1

public function authentication_header() {
	return 'Proxy-Authorization: Basic ' . base64_encode( $this->authentication() );
}