WpOrg\Requests\Auth
Basic::fsockopen_header
Add extra headers to the request before sending
Method of the class: Basic{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Basic = new Basic(); $Basic->fsockopen_header( $out );
- $out(string) (required) (passed by reference — &)
- HTTP header string.
Basic::fsockopen_header() Basic::fsockopen header code WP 7.0
public function fsockopen_header(&$out) {
$out .= sprintf("Authorization: Basic %s\r\n", base64_encode($this->getAuthString()));
}