I also used Visual Studio Code's automated code cleanup tool (double-checking to ensure that current code style is maintained) to remove unused code, keep consistent style, and make code more readable. This also explicitly defines some variables.
Feel free to accept some/none of this, I just wanted to send a PR with these changes to the main repo as I cleaned up the code while I was poking around at how this program works! 😄
This PR removes the deprecated
WebProxy.GetDefaultProxy();
withWebRequest.DefaultWebProxy
, which I think is the recommended way to use the default proxy.I also used Visual Studio Code's automated code cleanup tool (double-checking to ensure that current code style is maintained) to remove unused code, keep consistent style, and make code more readable. This also explicitly defines some variables.
Feel free to accept some/none of this, I just wanted to send a PR with these changes to the main repo as I cleaned up the code while I was poking around at how this program works! 😄