Uses
Uses | Description |
---|---|
wp-includes/Requests/Proxy/HTTP.php: Requests_Proxy_HTTP::get_auth_string() | Get the authentication string (user:pass) |
Add extra headers to the request before sending
(string) (Required) HTTP header string
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())); }
Version | Description |
---|---|
1.6 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests_proxy_http/fsockopen_header