WebRequest w/o LAN Settings of IE

  • Thread starter Thread starter Thana N.
  • Start date Start date
T

Thana N.

Hi,

How can I write program using WebRequest/HttpWebRequest with my own LAN
Settings not IE LAN Settings (I knows that by default it uses LAN Settings
from IE).

Thanks,
Thana N.
 
You want to use your own proxy settings ? You can do that by setting the
Proxy property on the webrequest:

WebRequest request = WebRequest.Create(...);
WebProxy p = new WebProxy(http://myproxy, true);
request.Proxy = p;

--
feroze
http://weblogs.asp.net/feroze_daud
============

Remove "user" from the email address to reply to the author.

This posting is provided "AS IS" with no warranties, and confers no rights

Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
 
That's OK for setting proxy for the application, but it's not OK if I want
to disable proxy as a default (my app can disable/enable proxy via
configuration) and IE still set a proxy value.

Thana N.
 

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

Back
Top