Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Setup a proxy.

40 views
Skip to first unread message

JoeB

unread,
Nov 14, 2005, 2:43:25 PM11/14/05
to
Hi,,


How do i setup a global proxy setting that can be used within internet
explorer.

For example, i setup proxy, username and password etc. Then open IE and it
will connect OK.

I cannot do this - Currenly this is what i do :

WebProxy objProxy = new WebProxy( sProxy, iPort );
objProxy.BypassProxyOnLocal = true;
objProxy.Credentials = new NetworkCredential( sProxy_username,
sProxy_password, sProxy_domain );
objProxy.BypassProxyOnLocal = true;
GlobalProxySelection.Select = objProxy;


Please help

j


Nicholas Paldino [.NET/C# MVP]

unread,
Nov 14, 2005, 2:50:50 PM11/14/05
to
JoeB,

If you want to set the proxy parameters for the system, you do not use
the WebProxy class. Rather, you have to make a call to the InternetSetProxy
function in the wininet library through the P/Invoke layer. Specifically,
you want to use the INTERNET_OPTION_PROXY option.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard.caspershouse.com

"JoeB" <j...@sdfdklshj.com> wrote in message
news:e54LmNV6...@TK2MSFTNGP11.phx.gbl...

JoeB

unread,
Nov 14, 2005, 3:14:39 PM11/14/05
to
Thanks for that. Does anyone have an example of this that works?


Joe


"Nicholas Paldino [.NET/C# MVP]" <m...@spam.guard.caspershouse.com> wrote in
message news:enl%23tSV6F...@TK2MSFTNGP14.phx.gbl...

0 new messages