Requests_Proxy_HTTP::fsockopen_header() public WP 1.6
Add extra headers to the request before sending
{} It's a method of the class: Requests_Proxy_HTTP{}
No Hooks.
Return
Null. Nothing.
Usage
$Requests_Proxy_HTTP = new Requests_Proxy_HTTP(); $Requests_Proxy_HTTP->fsockopen_header( $out );
- $out(string) (required) (passed by reference — &)
- HTTP header string
Changelog
Since 1.6 | Introduced. |
Code of Requests_Proxy_HTTP::fsockopen_header() Requests Proxy HTTP::fsockopen header WP 5.6
public function fsockopen_header(&$out) {
$out .= sprintf("Proxy-Authorization: Basic %s\r\n", base64_encode($this->get_auth_string()));
}