How do I use the proxies with cURL from the Linux’s terminal

If you need to use cURL with proxies which require authentication:

curl –proxy-user proxyuser:proxypassword  –proxy 1.2.3.4:80  http://mydomain.com