Use a proxy on curl/wget commands

April 17, 2018|
1 min read
  • command-line

Originally posted by me on Hashrocket TIL

Using a proxy can be a good way to debug http issues. Unfourtunately setting the proxy on macOS globally does not apply to all command line utilities.

On Curl for example you can set the proxy using the --proxy flag:

curl --proxy

Or by adding the following to your ~/.curlrc configuration file for a more persistent setting:

proxy =

A similar thing can be done with the wget utility by editing the ~/.wgetrc and adding:

http_proxy =

© 2023, Dorian Karter