Click here to Skip to main content
15,882,114 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i need some help in here, First im using VB.NET

i need to establish a httpwebrequest using a proxy, the problem is not how to do that but my problem is that i have a list of proxies in a listbox for example , and i need to check those proxies one by one if they are valid or not before being used by the webrequest.... so as to discard the bad (timedout) proxies and only use the valid working ones

so any help
Posted
Updated 13-Apr-13 3:29am
v2
Comments
Maciej Los 13-Apr-13 17:16pm    
Did you try WebProxy.IsBypassed Method[^], which indicates whether to use the proxy server for the specified host.

WebProxy.BypassProxyOnLocal property[^] - gets or sets a value that indicates whether to bypass the proxy server for local addresses.
WebProxy.ByPassList property[^] - gets or sets an array of addresses that do not use the proxy server.
Member 9953644 13-Apr-13 21:34pm    
no i did not, does this solve my problem

The only reliable way to check to see if a proxy is functioning is to try and make a request through it.

You could do a TCP/IP Ping, but that'll only tell you if the network stack on the target server is running and functioning. It won't tell you anything about the proxy server running on that box.
 
Share this answer
 
Comments
Maciej Los 14-Apr-13 7:01am    
+5
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900