WordPress at Your Fingertips
function is not described

Requests_Auth_Basic::fsockopen_header() public WP 1.0

Add extra headers to the request before sending

{} It's a method of the class: Requests_Auth_Basic{}

No Hooks.

Return

null. Nothing.

Usage

$Requests_Auth_Basic = new Requests_Auth_Basic();
$Requests_Auth_Basic->fsockopen_header( $out );
$out(string) (required) (passed by reference — &)
HTTP header string

Code of Requests_Auth_Basic::fsockopen_header() WP 5.8

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