Requests_Proxy_HTTP::fsockopen_header() WordPress Method
The fsockopen_header() method is used to open a socket connection to a remote server and send an HTTP request. This is a low-level method that is not intended for use by WordPress developers.
Requests_Proxy_HTTP::fsockopen_header( string $out ) #
Add extra headers to the request before sending
Parameters
- $out
(string)(Required)HTTP header string
Source
File: wp-includes/Requests/Proxy/HTTP.php
public function fsockopen_header(&$out) { $out .= sprintf("Proxy-Authorization: Basic %s\r\n", base64_encode($this->get_auth_string())); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
1.6 | Introduced. |