HttpWebRequest proxy problem

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

bruce barker

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top