• Модуль: dav
  • Путь к файлу: ~/bitrix/modules/dav/classes/general/request.php
  • Класс: CDavRequest
  • Вызов: CDavRequest::GetContentParameters
public function GetContentParameters()
{
	if ($this->arContentParameters != null)
		return $this->arContentParameters;

	$this->arContentParameters = array();

	if ($this->GetParameter('CONTENT_LENGTH') !== null)
		$this->arContentParameters["CONTENT_LENGTH"] = $this->GetParameter('CONTENT_LENGTH');
	elseif ($this->GetParameter('X-Expected-Entity-Length') !== null)
		$this->arContentParameters["CONTENT_LENGTH"] = $this->GetParameter('X-Expected-Entity-Length');

	$this->arContentParameters["CONTENT_TYPE"] = "application/octet-stream";
	if ($this->GetParameter("CONTENT_TYPE") !== null)
		$this->arContentParameters["CONTENT_TYPE"] = $this->GetParameter("CONTENT_TYPE");

	foreach ($this->arRequestParameters as $key => $val)
	{
		if (strncmp($key, "HTTP_CONTENT", 12))
			continue;
		if (in_array($key, array('HTTP_CONTENT_LENGTH', 'HTTP_CONTENT_TYPE')))
			continue;

		$this->arContentParameters[mb_strtoupper(mb_substr($key, 5))] = $val;
	}

	return $this->arContentParameters;
}