# New in Symfony 8.2: HTTP Recorder

DevFeed: [New in Symfony 8.2: HTTP Recorder](<https://devfeed.tech/articles/new-in-symfony-8-2-http-recorder-118747.md>)

Original publisher: [Read original article](<https://symfony.com/blog/new-in-symfony-8-2-http-recorder>)

Author: Javier Eguiluz

Published: 2026-11-05T08:12:00Z

Content type: release

Language: en

Sources: [Symfony](<https://devfeed.tech/sources/symfony-blog.md>)

Topics: [Symfony](<https://devfeed.tech/topics/symfony.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [HTTP](<https://devfeed.tech/topics/http.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [apis](<https://devfeed.tech/tags/apis.md>), [custom](<https://devfeed.tech/tags/custom.md>), [format](<https://devfeed.tech/tags/format.md>), [headers](<https://devfeed.tech/tags/headers.md>), [http](<https://devfeed.tech/tags/http.md>), [http-client](<https://devfeed.tech/tags/http-client.md>), [json](<https://devfeed.tech/tags/json.md>), [network](<https://devfeed.tech/tags/network.md>), [note](<https://devfeed.tech/tags/note.md>), [option](<https://devfeed.tech/tags/option.md>), [order](<https://devfeed.tech/tags/order.md>), [recorder](<https://devfeed.tech/tags/recorder.md>), [symfony](<https://devfeed.tech/tags/symfony.md>)

## AI overview

Symfony 8.2 adds HTTP recording and replay to HttpClient for tests that call external APIs. Enable `http_client.recorder` in the test environment and mark applicable tests with `#[UseRecord]`; run them with `SYMFONY_HTTP_RECORDER=missing` to make and save uncaptured requests in a per-test HAR file. Commit the HAR file so default `replay` runs, including CI, use recorded responses and fail with `HarEntryNotFoundException` for an unmatched request instead of reaching the network. Other modes are `record` (rewrite files using live calls), `missing` (record only uncaptured calls), and `passthrough` (live calls without file access). Requests match by method, URL, and body; repeated requests replay in recorded order. Built-in redaction masks common credentials in requests and responses, and masked request values do not affect matching. Add names with `redact`, remove built-in names with `redact_except`, or provide a custom `RedactorInterface`; replayed masked responses can prevent validation of signed values such as an `id_token` unless redaction is customized.

## Source excerpt

Contributed by Imen Ezzine ,...