> OctoPerf load testing - Charles HAR import documentation page. How to record an HAR file using Charles proxy and import it in OctoPerf?

Source: https://api.octoperf.com/doc/design/create-virtual-user/har-recorder/record-charles-har/

# Charles HAR record

Charles is a web-proxy which allows to capture HTTP and HTTPS requests and responses. Charles is very simple to use once configured. It allows to record HTTP scenarios within minutes.

## Installation

[Download Charles](https://www.charlesproxy.com/download/) and install it. Then, launch Charles. It should configure the HTTP proxy automatically on your browser and starts recording HTTP requests.

## HTTPS Configuration

Charles needs to be set up properly in order to record HTTPS Traffic, otherwise it will display like this:
![Recording HTTPS](https://api.octoperf.com/doc/design/create-virtual-user/har-recorder/img/charles/recording-ko.png "Recording HTTPS")


* Click on *Proxy > SSL Proxying settings...*, a dialog should be displayed,
* Check *Enable SSL Proxying*,
* The easiest way to record any host is to clear the list and add only one line with \*
![Add host](https://api.octoperf.com/doc/design/create-virtual-user/har-recorder/img/charles/add-host.png "Add host")

## Trust Charles certificate

Now when recording we may see a message like this:
![Not secure](https://api.octoperf.com/doc/design/create-virtual-user/har-recorder/img/charles/not-secure.png "Not secure")

This is because we also need to trust Charles certificate:
![Trust root certificate](https://api.octoperf.com/doc/design/create-virtual-user/har-recorder/img/charles/root-certificate.png "Trust root certificate")
Select install certificate and follow through the end of the procedure.

## Recording the scenario

Record your scenario by browsing with your favorite web-browser. The requests and responses should appear in Charles. 
We strongly recommend using the sequence tab to preserve the request order:
![Sequence](https://api.octoperf.com/doc/design/create-virtual-user/har-recorder/img/charles/sequence.png "Sequence")
Once finished, remove any unwanted request from the list before saving exporting your recorded charles sessions.

## Saving the recording

To export, select all requests with CTRL+A and right click:
![Export all](https://api.octoperf.com/doc/design/create-virtual-user/har-recorder/img/charles/export-all.png "Export all")
Then save it as an HAR file on your disk.

## Create Virtual User: Import HAR

Great, we're just one step behind having a virtual user created from a Charles recording. Import the previously saved HAR file on OctoPerf.
![Create Virtual User from HAR](https://api.octoperf.com/doc/design/create-virtual-user/har-recorder/img/charles/import-har-charles.png "Create your virtual user from the recorded Charles HAR file")

Simply drop the file in the HAR area or use the _Upload new HAR file_ button and hit _Next_.

Before uploading, you can adjust the [import options](https://api.octoperf.com/doc/design/create-virtual-user/har-recorder/#import-options): ad blocker, static resources and think times.
