I had to make The Regulator support Proxy servers, so I dug in to how the WebProxy class works, and with a little help from Darren, I managed to get it up and running. In the process, I wrote a little helper class that eases the configuration syntax against this API. Here it is:
It can handle all the situations, starting from getting the default proxy settings up to providing the user/password login information setup. Hope it helps.