# Recording HAR files for Harvey

### Prerequisites

Before continuing, make sure you have installed and configured one of the supported proxy tools:

* [Installing Charles WebProxy](/request-based-basics/installing-charles-webproxy.md)
* [Installing PowHTTP](https://claude.ai/chat/installing-powhttp.md)

### Routing your script traffic

In order to record a HAR file, you first need to route your script's HTTP traffic through the proxy. You can do this by setting the proxy address in your code to your local proxy port:

* **Charles WebProxy:** `http://127.0.0.1:8888`
* **PowHTTP:** `http://127.0.0.1:8080` (default port, check your PowHTTP settings)

{% hint style="info" %}
Make sure your proxy is running **before** you start your script, otherwise the requests will fail or bypass the proxy entirely.&#x20;
{% endhint %}

### Recording with Charles WebProxy

1. Run your script while Charles is open. You should see the requests appear in the session list.
2. Select the requests you want to export. You can select multiple by holding `Ctrl` (or `Cmd` on macOS) and clicking each request, or `Ctrl+A` to select all.
3. Right-click on the selected requests and click **Export Session...**

<figure><img src="/files/UYwdlRayRg0BZ7f16GjK" alt=""><figcaption></figcaption></figure>

4. In the save dialog, select **HTTP Archive (.har)** from the **Files of type** dropdown at the bottom.
5. Choose a location and save the file.

### Recording with PowHTTP

1. Run your script while PowHTTP is open. You should see the requests appear in the session list.
2. Click the **Download** button (⬇) in the toolbar.

<figure><img src="/files/0DgZe2eX1nsuV7Z4Z2UL" alt=""><figcaption></figcaption></figure>

3. Select **HAR 1.3 (recommended)** from the format options.
4. Choose a location and save the file.

### Submitting your HAR file

Once you have your `.har` file saved, you can attach it to your support ticket or send it to us via Discord. The HAR file contains all the request and response data we need to diagnose your issue.

{% hint style="warning" %}
HAR files may contain sensitive information such as cookies, tokens, and authorization headers. If you are concerned about sharing this data, let us know and we can guide you on how to sanitize the file before sending it.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.hypersolutions.co/request-based-basics/recording-har-files-for-harvey.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
