proxy checker code in vb.net needed

specopkirbs

BANNED
Joined
Nov 28, 2008
Messages
920
Reaction score
752
im looking for a simple code that checks if a list proxys in a listbox are working or not.
im coding in vb.net
most the examples i have found are either too slow or dont work.
it needs to be fast and efficient and preferably using httpwebrequest if possible
can anyone help?
 
I typed out an answer, but it was tripping the filters and wouldnt let me post it, piece of &*^%^

just PM me if you need a hand, I was the one who gave you the code for tokening {hey|hi}, I just cant acess that account with my old username anymore for some reason :/
 
Couldn't you just test the proxy with webbowser

Selected proxy from list
go to google.com
if webbrowser1.document.body.InnerText.contains("About Google") then
transfer working proxy to list 2

nm you said lighting fast
 
Just you can see a tutorial which you need. Or you can watch video tutorial of you related software.

Don't worry it will solve if you tried more time :)
 
yeah thanks guys got it sorted now cheers just got to multithread it now
 
Care to share any tips on how you achieved it?
Im converting a bot from webbrowser to webrequest, and this will be something i need to do fairly soon, so would really appreciate any tips.
 
You can check here
Code:
http://www.hanselman.com/blog/BackToParallelBasicsDontBlockYourThreadsMakeAsyncIOWorkForYou.aspx
In that blog are some tips on using webrequest with the new Parallel libraries in .net 4. Is c# but you can translate to vb.net easily.
 
I typed out an answer, but it was tripping the filters and wouldnt let me post it, piece of &*^%^

just PM me if you need a hand, I was the one who gave you the code for tokening {hey|hi}, I just cant acess that account with my old username anymore for some reason :/

I would love to have a look at this code also.
Thanks
 
I don't know why people are recommending you use the WebBrowser object for this. Use HttpWebRequest. When you get your response check that httpWebRequest.StatusCode == StatusCode.OK. If it doesn't your proxy is dead or timed out. Easy as pie. ;)
 
ping a site like google or some fast websites, if status is 200 then proxy is alive :)
 
Back
Top