Home > Mobile >  Charles Rewrite Settings working with web browser but not with curl
Charles Rewrite Settings working with web browser but not with curl

Time:07-18

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?

CodePudding user response:

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
  • Related