HttpWebRequest proxy problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello, I have some code which use HttpWebRequest class and I see by default
it use IE proxy settings. It means If I will not put any proxy this class get
IE proxy and use it. How turn this off?
Can I use some global settings in code force this class don't use IE by
default?
 
depends on where your code is. in an asp.net app, its running under a
service, so there are no ie settings as these are stored under a profile
and services do not have a profile. if its a windows app then its uses
the IE settings.

but to control the settings, you set the Proxy object to your own. see
WebProxy.

-- bruce (sqlwork.com)
 
Back
Top