Re: How to fetch the default HTTP proxy
From: feroze (userferozed_at_online.microsoft.com)
Date: 06/16/04
- Next message: Jonathan Pierce: "Re: Any good code obfuscator?"
- Previous message: Simon: "CompileAssemblyFromDom creates referenced dlls"
- In reply to: Bob Altman: "Re: How to fetch the default HTTP proxy"
- Next in thread: Bob Altman: "Re: How to fetch the default HTTP proxy"
- Reply: Bob Altman: "Re: How to fetch the default HTTP proxy"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 16 Jun 2004 05:14:15 GMT
Here are the rules for proxy behavior in System.Net:
1) The appdomain setting overrides the machine.config/app.config settings.
2) The per-request proxy (set using httpwebrequest.Proxy) overrides #1
Do you want to do authentication for proxy ? If so, set the credential on
the proxy, not the webrequest.
proxy.Credentials = new NetworkCredential("proxyuser", "proxypass",
"proxydomain");
-- Thanks feroze ============= This posting is offered as-is. It offers no warranties and confers no rights. "Bob Altman" <rda@nospam.com> wrote in message news:eaeD8IxUEHA.2388@TK2MSFTNGP09.phx.gbl... > Hmmm... curious. My machine.config file has not been modified, and it > contains > > <defaultProxy> > <proxy usesystemdefault="true"/> > > And yet my application doesn't work unless I create a WebProxy object and > provide it as the value of the GlobalProxySelection.Select property. > > Do I need to do something to tell .Net to use the settings in > machine.config? > > - Bob > >
- Next message: Jonathan Pierce: "Re: Any good code obfuscator?"
- Previous message: Simon: "CompileAssemblyFromDom creates referenced dlls"
- In reply to: Bob Altman: "Re: How to fetch the default HTTP proxy"
- Next in thread: Bob Altman: "Re: How to fetch the default HTTP proxy"
- Reply: Bob Altman: "Re: How to fetch the default HTTP proxy"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|