Requests_Proxy_HTTP::get_auth_string() WordPress Method

The get_auth_string() function is part of the Requests_Proxy_HTTP class, which provides an interface for making HTTP requests via a proxy server. This function returns an authentication string for use with a proxy server that requires authentication. The string is formatted as follows: "username:password".

Requests_Proxy_HTTP::get_auth_string() #

Get the authentication string (user:pass)


Return

(string)


Top ↑

Source

File: wp-includes/Requests/Proxy/HTTP.php

	public function get_auth_string() {
		return $this->user . ':' . $this->pass;
	}


Top ↑

Changelog

Changelog
VersionDescription
1.6Introduced.

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.