# Recording

In the context of Stoobly, recording means to intercept HTTP requests with the agent and save them to the local filesystem.

## Why record HTTP requests?

Recording HTTP requests saves previously seen requests and their responses. This enables you to:

* Mock future requests that match and return realistic data
* Replay requests at any time
* Gain deeper insight into a scenario's requests

## What gets recorded?

The following HTTP request components get recorded:

* Hostname
* Port number
* Path
* Headers
* Query Parameters
* Body
* Response Headers
* Response Body

## When are HTTP requests recorded?

<figure><img src="https://3980092275-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MLvhXOE-py5MDUOXDKD%2Fuploads%2Fgit-blob-b62c174e6c0194461aba8d136706fa0b54f8c94d%2Frecord.simple.png?alt=media" alt=""><figcaption><p>Recording a HTTP request with Stoobly</p></figcaption></figure>
