Monday, July 25, 2022

[SOLVED] Charles Rewrite Settings working with web browser but not with curl

Issue

I use Charles web debugging proxy
I have a rewrite rule that's working fine with chrome but that isn't applied using curl.

curl https://example.com

Am I doing something wrong?


Solution

Here are 2 options:

  1. Setting up your curl configuration file (~/.curlrc)
proxy = 127.0.0.1:8888
  1. Passing the proxy option to your curl command
curl https://example.com --proxy 127.0.0.1:8888


Answered By - OlivierLarue
Answer Checked By - Mildred Charles (WPSolving Admin)