protected function send($content)
	{
		$streamOptions = array(
			'http' => array(
				'method'  => 'POST',
				'header'  => 'Content-Type: application/json',
				'content' => $content,
			)
		);

		$context = stream_context_create($streamOptions);
		$result = @file_get_contents($this->getServerUrl(), false, $context);

		if ($result === false) {
			throw new Exception('Unable to connect to server');
		}

		return $result;
	}
protected function send($content)
	{
		$streamOptions = array(
			'http' => array(
				'method'  => 'POST',
				'header'  => 'Content-Type: application/json',
				'content' => $content,
			)
		);

		$context = stream_context_create($streamOptions);
		$result = @file_get_contents($this->getServerUrl(), false, $context);

		if ($result === false) {
			throw new Exception('Unable to connect to server');
		}

		return $result;
	}
protected function send ( $ content ) { $ streamOptions = array ( 'http' => array ( 'method' => 'POST' , 'header' => 'Content-Type: application/json' , 'content' => $ content , ) ) ; $ context = stream_context_create ( $ streamOptions ) ; $ result = @ file_get_contents ( $ this -> getServerUrl ( ) , false , $ context ) ; if ( $ result === false ) { throw new Exception ( 'Unable to connect to server' ) ; } return $ result ; }
Send low level data by http

@param string $content
@return string
@throws Exception
Send low level data by http