WP_HTTP_Proxy::authentication_header() WordPress Method

The WP_HTTP_Proxy::authentication_header() function is used to generate an HTTP Authentication header for use with WP_HTTP_Proxy. This function is used when making HTTP requests through a proxy server that requires authentication.

WP_HTTP_Proxy::authentication_header() #

Retrieve header string for proxy authentication.


Return

(string)


Top ↑

Source

File: wp-includes/class-wp-http-proxy.php

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


Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.