Requests_Auth_Basic::fsockopen_header() WordPress Method
The fsockopen_header() function is used to open a socket connection and send an HTTP request. This function is used by the HTTP Client class to request data from a server.
Requests_Auth_Basic::fsockopen_header( string $out ) #
Add extra headers to the request before sending
Contents
Parameters
- $out
(string)(Required)HTTP header string
Source
File: wp-includes/Requests/Auth/Basic.php
public function fsockopen_header(&$out) { $out .= sprintf("Authorization: Basic %s\r\n", base64_encode($this->getAuthString())); }
Expand full source codeCollapse full source codeView on TracView on GitHub