Click here to Skip to main content
13,046,679 members (61,245 online)
Rate this:
Please Sign up or sign in to vote.
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 13-Apr-13 3:26am
Updated 13-Apr-13 3:29am
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
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
Maciej Los 14-Apr-13 7:01am
Rate this: bad
Please Sign up or sign in to vote.

Solution 2


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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 15 Apr 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100