Re: How to fetch the default HTTP proxy

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: feroze (userferozed_at_online.microsoft.com)
Date: 06/16/04


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
>
>


Relevant Pages

  • RE: Publish to External FrontPage Server
    ... meaning Auto config, use proxy I am able to connect to the remote website. ... How can I make this work without having to disable the IE settings everytime ... Publish to External FrontPage Server ...
    (microsoft.public.isa)
  • Re: HTTP Error 403.6 - Forbidden: IP Address Rejected
    ... it was the proxy settings on the ... > You can also try to change the security settings for the Remote Web ... Open the IIS console ...
    (microsoft.public.windows.server.sbs)
  • Re: Trend Micro and Proxy Server
    ... Access is from server console. ... ' under the Advanced proxy setting makes a difference. ... just turn off the proxy in the server's IE settings. ... Les Connor [SBS Community Member - SBS MVP] ...
    (microsoft.public.windows.server.sbs)
  • Re: Trend Micro and Proxy Server
    ... remove the tick from "use a proxy server" in IE - if that works ... Les Connor [SBS Community Member - SBS MVP] ... just turn off the proxy in the server's IE settings. ...
    (microsoft.public.windows.server.sbs)
  • Re: Trend Micro and Proxy Server
    ... Les Connor [SBS Community Member - SBS MVP] ... from "use a proxy server" in IE. ... remove the tick from "use a proxy server" in IE - if that ... IE's use proxy settings. ...
    (microsoft.public.windows.server.sbs)