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)
Source
File: wp-includes/class-wp-http-proxy.php
public function authentication_header() { return 'Proxy-Authorization: Basic ' . base64_encode( $this->authentication() ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |