How to Use Charles Proxy to Capture HTTPS Traffic on Windows and macOS

This guide explains how to install and configure Charles Proxy, set up its root certificate and SSL proxying, capture HTTPS requests from browsers and apps, and avoid common pitfalls such as leaving the proxy enabled after closing the tool.

Liangxu Linux
Liangxu Linux
Liangxu Linux
How to Use Charles Proxy to Capture HTTPS Traffic on Windows and macOS

Overview

Charles is a network debugging proxy that captures HTTP and HTTPS traffic from browsers and client applications. It runs on Windows and macOS and starts a system proxy on port 8888.

Installation

Download the installer from https://www.charlesproxy.com/download/ and run it. The trial lasts 30 days.

Enabling HTTPS Capture

Install the Charles root certificate: Help → Install Charles Root Certificate . Choose Local Computer store and place it under Trusted Root Certification Authorities . After installation, click Reset in Charles.

Open Proxy → SSL Proxying Settings . Add a location with Host: * and Port: * (or specify particular hosts). This enables decryption of HTTPS traffic.

Capturing Requests

After the proxy is active, open any web page; requests appear in the Charles session list. The tool can also capture traffic from desktop applications. For example, browsing a public account article shows the underlying HTTP calls.

Disabling the Proxy

When debugging is finished, disable the system proxy (or quit Charles) to restore normal network access. Leaving the proxy enabled while the port is unavailable will cause browsers to fail to load pages.

Additional Workflow Tips

Use the “Copy as cURL (bash)” context menu to export a request. Paste the command into https://curlconverter.com/ to obtain equivalent code in Python, JavaScript, Go, etc.

For JSON response formatting in the browser, install a JSON‑viewer extension.

Postman can be used for further API testing.

For an open‑source alternative, see https://mitmproxy.org/.

To switch proxies quickly, you can use the Chrome extension Proxy SwitchyOmega (URL: https://chrome.google.com/webstore/detail/proxy-switchyomega/padekgcemlokbadohgkifijomclgjgif).

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Charles Proxynetwork captureHTTPS debuggingproxy configurationSSL Certificate
Liangxu Linux
Written by

Liangxu Linux

Liangxu, a self‑taught IT professional now working as a Linux development engineer at a Fortune 500 multinational, shares extensive Linux knowledge—fundamentals, applications, tools, plus Git, databases, Raspberry Pi, etc. (Reply “Linux” to receive essential resources.)

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.