---
title: "Deprecation: #109551 - GeneralUtility::getIndpEnv()"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-109551-1775924599"
source: "Changelog/14.3/Deprecation-109551-GeneralUtilityGetIndpEnv.rst"
typo3-version: "14.3"
typo3-major: 14
type: "deprecation"
issue: 109551
forge: "https://forge.typo3.org/issues/109551"
tags: ["PHP-API", "FullyScanned", "ext:core"]
rendered: "2026-09-20T18:31:11+00:00"
---

# Deprecation: #109551 - GeneralUtility::getIndpEnv() {#deprecation-109551-1775924599}

See [forge#109551](https://forge.typo3.org/issues/109551)

## Description {#description}

Method `\TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv()` has been deprecated.

The method abstracts server environment variables and was used to obtain request-related
data from PHP superglobals, such as the current host, URI, and site path. This information is
reliably available via `\TYPO3\CMS\Core\Http\NormalizedParams`, which is attached
as an attribute to the PSR-7 request.

## Impact {#impact}

Calling `\TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv()` triggers
a PHP `E_USER_DEPRECATED` error.

## Affected installations {#affected-installations}

All installations that call
`\TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv()` directly.

The extension scanner will detect affected usages as a strong match.

## Migration {#migration}

Replace calls to `\TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv()` with the corresponding
`\TYPO3\CMS\Core\Http\NormalizedParams` getter. A
`NormalizedParams` instance is available as an attribute of the PSR-7
request:

```php
// Before
use TYPO3\CMS\Core\Utility\GeneralUtility;

$siteUrl = GeneralUtility::getIndpEnv('TYPO3_SITE_URL');
$host = GeneralUtility::getIndpEnv('HTTP_HOST');

// After
use TYPO3\CMS\Core\Http\NormalizedParams;

/** @var NormalizedParams $normalizedParams */
$normalizedParams = $request->getAttribute('normalizedParams');
$siteUrl = $normalizedParams->getSiteUrl();
$host = $normalizedParams->getHttpHost();
```
