Today I Learned

A Hashrocket project

Use a proxy on curl/wget commands

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 =