Requests_Auth_Basic::fsockopen_header

Advertisement

Summery Summery

Add extra headers to the request before sending

Syntax Syntax

Requests_Auth_Basic::fsockopen_header( string $out )

Parameters Parameters

$out

(string) (Required) HTTP header string

Source Source

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

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

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.