Click here to Skip to main content
11,644,731 members (69,211 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: VB.NET
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
Edited 13-Apr-13 3:29am
Maciej Los at 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 at 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 at 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
0 OriginalGriff 680
1 494
2 Sergey Alexandrovich Kryukov 464
3 Afzaal Ahmad Zeeshan 418
4 CPallini 336
0 OriginalGriff 925
1 DamithSL 636
2 Afzaal Ahmad Zeeshan 622
3 Sergey Alexandrovich Kryukov 548
4 CPallini 521

Advertise | Privacy | Mobile
Web04 | 2.8.150731.1 | Last Updated 15 Apr 2013
Copyright © CodeProject, 1999-2015
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