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


Parameters

$out

(string)(Required)HTTP header string


Top ↑

Source

File: wp-includes/Requests/Auth/Basic.php

	public function fsockopen_header(&$out) {
		$out .= sprintf("Authorization: Basic %s\r\n", base64_encode($this->getAuthString()));
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.