In .NET you have the handy
System.Net.CredentialCache.DefaultCredentials
to set all your needed proxy data to the default values of the system.
How can i do something similar in native C++? I need the proxy address, username and password. Our project uses MFC and cURL