WpOrg\Requests\Auth
Basic::fsockopen_header()
Add extra headers to the request before sending
Method of the class: Basic{}
No Hooks.
Return
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 6.6.2
public function fsockopen_header(&$out) { $out .= sprintf("Authorization: Basic %s\r\n", base64_encode($this->getAuthString())); }