Re: How to fetch the default HTTP proxy

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Joerg Jooss (joerg.jooss_at_gmx.net)
Date: 06/12/04


Date: Sun, 13 Jun 2004 00:19:07 +0200

Bob Altman wrote:
> Sorry, you lost me there... What do you mean "don't do anything in
> order to use the system's default proxy, assuming you're running the
> default configuration"?

Assuming you're running the default .NET configuration (i.e. you didn't
modify the proxy settings in machine.config), you don't need to assign an
IWebProxy instance to your HttpWebRequest's proxy property.

> My computer is set up to use a proxy server.
> However, if I don't go out of my way to feed the URL of my proxy
> server to the WebRequest, then it fails when it tries to contact the
> remote website.

Works for me. Does your proxy use authentication?

Cheers,

-- 
Joerg Jooss
joerg.jooss@gmx.net


Relevant Pages

  • Re: How to fetch the default HTTP proxy
    ... Here are the rules for proxy behavior in System.Net: ... The appdomain setting overrides the machine.config/app.config settings. ... "Bob Altman" wrote in message ...
    (microsoft.public.dotnet.framework)
  • Re: How to fetch the default HTTP proxy
    ... My computer is set up to use a proxy server. ... > Bob Altman wrote: ... > (that's the default configuration), ... > IWebProxy instance. ...
    (microsoft.public.dotnet.framework)