I am writing a command-line tool for Windows that uses libcurl to download files from the internet.
Obviously, the downloading doesn\'t work when the user is behind
There are registry keys for these values that you could get to directly of course. You could also do this in .NET without much hassle at all. I believe the WebClient object negotiates the proxy settings for you based on the current settings. This would look like this in C#:
using System.Net;
string url = "http://www.example.com";
WebClient client = new WebClient();
byte[] fileBuffer = client.DownloadFile(url);
Or something close to that.