Ubuntu. curl behind a proxy

1. Open default config file:

sudo nano ~/.curlrc

2. Add next setting

proxy = user:password@proxy-address:proxy-port