• Модуль: webdav
  • Путь к файлу: ~/bitrix/modules/webdav/classes/general.php
  • Класс: __CWebdavRequestParser
  • Вызов: __CWebdavRequestParser::LoadFromPhpInput
function LoadFromPhpInput()
{
	$f_in = fopen('php://input', 'r');
	if (!$f_in)
	{
		$this->success = false;
		return false;
	}

	$xml = '';
	while ($this->success && !feof($f_in))
	{
		$line = fgets($f_in);
		if (is_string($line))
		{
			$xml .= $line;
		}
	}
	fclose($f_in);
	return $this->LoadFromStr($xml);
}