# Capturing traffic with Loadmill MITM Proxy

Loadmill's Desktop App utilizes a MITM (Man-in-the-Middle) proxy to capture API traffic from your mobile device. This enables you to record user interactions at the API level, providing valuable data for generating dynamic flows and executing deviceless tests.

{% hint style="info" %}
It is also possible to use 3rd party MITM proxies as well (ie. Charles proxy and proxyman) and export the captured traffic into loadmill.
{% endhint %}

The MITM proxy intercepts the communication between your mobile device and the backend servers, allowing Loadmill to analyze and record the API calls and responses. This approach ensures that you capture the most accurate and complete data for your testing scenarios.

To use the MITM proxy within Loadmill's Desktop App, follow these steps:

1. **Start the Loadmill Desktop App:** Switch to the proxy section\
   ![](/files/sjRv7b9iIyz4qN5sd5Oq)\
   at this stage the proxy will be paused without content.
2. **Install a Certificate**: Installing the Loadmill certificate on your device establishes a secure trust relationship between your device and the proxy, enabling it to decrypt the traffic for analysis and testing purposes.\
   In loadmill proxy, look for the following button ![](/files/EW7v8kc5q6sG4GMg6IcZ) to download the certificate.
3. **Set up your mobile device** to use the proxy server provided by the Loadmill Desktop App. This typically involves configuring your device's Wi-Fi settings to use the proxy server's IP address and port number.
4. **Start the proxy:** By clicking the <img src="/files/vSO2OTsON21Fu3DaXpvd" alt="" data-size="line">button
5. **Interact with your application:** you will see new requests accumulating in loadmill.\
   ![](/files/62iYsv3idDLhWpmVgc2i)


---

# 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.loadmill.com/introduction/deviceless-mobile-testing/capturing-traffic-with-loadmill-mitm-proxy.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.
