Click here to Skip to main content
Rate this: bad
good
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 4:26am
Edited 13-Apr-13 4:29am
v2
Comments
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
good
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.
  Permalink  
Comments
Maciej Los at 14-Apr-13 7:01am
   
+5
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
v3

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

  Print Answers RSS
0 OriginalGriff 195
1 Afzaal Ahmad Zeeshan 132
2 ProgramFOX 130
3 Maciej Los 115
4 Sergey Alexandrovich Kryukov 75
0 OriginalGriff 6,564
1 Sergey Alexandrovich Kryukov 6,048
2 DamithSL 5,228
3 Manas Bhardwaj 4,657
4 Maciej Los 4,150


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