1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

proxy checker code in vb.net needed

Discussion in 'Visual Basic .NET' started by specopkirbs, Dec 29, 2010.

  1. specopkirbs

    specopkirbs BANNED BANNED

    Joined:
    Nov 28, 2008
    Messages:
    920
    Likes Received:
    746
    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?
     
  2. andee

    andee Regular Member

    Joined:
    Jul 24, 2010
    Messages:
    218
    Likes Received:
    83
    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 :/
     
  3. korfx04

    korfx04 Junior Member

    Joined:
    Feb 27, 2009
    Messages:
    152
    Likes Received:
    96
    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
     
  4. faster

    faster Jr. VIP Jr. VIP Premium Member

    Joined:
    Jan 3, 2011
    Messages:
    1,728
    Likes Received:
    184
    Home Page:
    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 :)
     
  5. specopkirbs

    specopkirbs BANNED BANNED

    Joined:
    Nov 28, 2008
    Messages:
    920
    Likes Received:
    746
    yeah thanks guys got it sorted now cheers just got to multithread it now
     
  6. m3ownz

    m3ownz Regular Member

    Joined:
    Dec 12, 2009
    Messages:
    311
    Likes Received:
    135
    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.
     
  7. vloza

    vloza Registered Member

    Joined:
    Apr 7, 2010
    Messages:
    74
    Likes Received:
    49
    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.
     
    • Thanks Thanks x 1
  8. v7web

    v7web Registered Member

    Joined:
    Jul 15, 2010
    Messages:
    51
    Likes Received:
    3
    I would love to have a look at this code also.
    Thanks
     
  9. m3ownz

    m3ownz Regular Member

    Joined:
    Dec 12, 2009
    Messages:
    311
    Likes Received:
    135
  10. sweepypanda

    sweepypanda Newbie

    Joined:
    Jul 27, 2010
    Messages:
    20
    Likes Received:
    4
    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. ;)
     
  11. jangedoo

    jangedoo Registered Member

    Joined:
    Jan 12, 2010
    Messages:
    59
    Likes Received:
    41
    ping a site like google or some fast websites, if status is 200 then proxy is alive :)