By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,694 Members | 1,320 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,694 IT Pros & Developers. It's quick & easy.

Use Web Proxy / Network Credentials

P: n/a
When connecting to a web service using:

Dim W As New System.Net.WebClient

How do you use a proxy as well as network credentials?
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a

WebClient class uses WebRequest class to access the Internet, therefore you
can use GlobalProxySelection class to set a global proxy to use. Based on
MSDN documentation, the steps are:
- Create a NetworkCredential class.
- Create a WebProxy class with your NetworkCredentials.
- Call GlobalProxySelection.Select (you don't need to create a new instance
of this) with your WebProxy class.

Hope it helps,

Huy Nguyen, Visual Basic team.

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

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.