---
title: "Deprecation: #84171 - Adding GeneralUtility::getUrl RequestHeaders as non-associative array are deprecated"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-84171"
source: "Changelog/9.2/Deprecation-84171-AddingGeneralUtilitygetUrlRequestHeadersAsNon-associativeArrayAreDeprecated.rst"
typo3-version: "9.2"
typo3-major: 9
type: "deprecation"
issue: 84171
forge: "https://forge.typo3.org/issues/84171"
tags: ["PHP-API", "NotScanned"]
rendered: "2026-09-20T18:31:11+00:00"
---

# Deprecation: #84171 - Adding GeneralUtility::getUrl RequestHeaders as non-associative array are deprecated {#deprecation-84171}

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

## Description {#description}

RequestHeaders passed to `getUrl()` as string (format `Header:Value`) have been marked as deprecated.
Associative arrays should be used instead.

## Impact {#impact}

Using `GeneralUtility::getUrl()` request headers in a non-associative way will trigger an `E_USER_DEPRECATED` PHP error.

## Affected Installations {#affected-installations}

All using request headers for `GeneralUtility::getUrl()` in a non-associative way.

## Migration {#migration}

Use associative arrays, for example:

```php
$headers = ['Content-Language: de-DE'];
```

will become

```php
$headers = ['Content-Language' => 'de-DE'];
```
