How to set a proxy for curl

There isn't support for a proxy in Pi-hole, you will have to configure curl or your network settings to handle that.