Requests_Auth_Basic::getAuthString() WordPress Method

The getAuthString() method is used to generate an HTTP Basic Authentication string. This string consists of the username and password, separated by a colon (:), encoded using the Base64 algorithm.

Requests_Auth_Basic::getAuthString() #

Get the authentication string (user:pass)


Return

(string)


Top ↑

Source

File: wp-includes/Requests/Auth/Basic.php

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

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.