How to configure proxy in programming tool?

Windows, curl
Syntax:
curl --proxy-user <user[:password]> --proxy <proxyhost[:port]> <url>

Example:
curl --proxy-user user1:pass1 --proxy 1.1.1.1:3128 http://www.locaproxy.com
If the user would like to visit http://www.locaproxy.com via proxy server (1.1.1.1, port:3128)
How to configure proxy in programming tool?