W3cubDocs

/WordPress

Basic::fsockopen_header( string $out )

Add extra headers to the request before sending

Parameters

$outstringrequired
HTTP header string

Source

public function fsockopen_header(&$out) {
	$out .= sprintf("Authorization: Basic %s\r\n", base64_encode($this->getAuthString()));
}

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wporg-requests-auth-basic/fsockopen_header