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