Onions
Newbie
- Joined
- May 13, 2003
- Messages
- 849
- Reaction score
- 0
lo my lovelys! making a c# app, doing a http get. and having problems getting it to go through my proxy. it works fine on other isp's, but mine (freeserve) have this page that gets sent instead of what you request to tell you to update your proxy settings in IE.
Here's the code in question..
only things you need to know is "Proxy" is a bool, and yes it's true
also the proxy is correctly set up in ie
any suggestions?
Here's the code in question..
Code:
string URL = "http://www.i-fighter.co.uk/txt.txt"; // grab some random shit for testage
WebRequest request;
request = WebRequest.Create(URL);
if (Proxy == true)
{
WebProxy myProxy = new WebProxy("bleh",0); // feed it crap, it gets the clients settings from IE
myProxy.BypassProxyOnLocal = true;
request.Proxy = WebProxy.GetDefaultProxy(); // get proxy settings from IE
}
only things you need to know is "Proxy" is a bool, and yes it's true
also the proxy is correctly set up in ie
any suggestions?