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

Building bots in VB.NET..httpwebrequest or webbrowser?

Discussion in 'General Programming Chat' started by simpleonlinetest, Mar 11, 2011.

  1. simpleonlinetest

    simpleonlinetest Regular Member

    Joined:
    Feb 18, 2010
    Messages:
    208
    Likes Received:
    25
    What's a better route to learn when starting out building bots in VB.NET?

    I can currently build basic bots that can navigate to a website, enter text into textboxes, and press buttons, etc but it seems somewhat slow using the webbrowser.

    I'm looking to build some professional type bots that can use multi threads and move lightening fast when processing the data.

    I'm at a cross roads right now because I can dive into either learning everything about webbrowser options or httpwebrequest options.

    Of course I will be learning them both in time but which would be the better route to learn to use when building great little bots?

    Thanks
     
  2. RandR

    RandR Registered Member

    Joined:
    May 18, 2009
    Messages:
    75
    Likes Received:
    25
    Home Page:
    For multi-threading and speed you'd have to go with HTTPWebRequest.
     
  3. specopkirbs

    specopkirbs BANNED BANNED

    Joined:
    Nov 28, 2008
    Messages:
    920
    Likes Received:
    746
    httpwebrequest all the way baby or webclient
     
  4. Stalli0n

    Stalli0n Junior Member

    Joined:
    Nov 17, 2010
    Messages:
    115
    Likes Received:
    83
    Location:
    Europe
    HttpWebRequest, WebBrowser for JavaScript

    and after that you could try Sockets.
     
  5. gnote

    gnote Registered Member

    Joined:
    Mar 10, 2009
    Messages:
    80
    Likes Received:
    6
    Occupation:
    Programmer
    Location:
    USA
    You don't want to waste your time with the web browser, you will only be setting yourself up with limitations.

    Learn the web request class, and even better purchase a 3rd party control like chillcat or if you're a good enough programmer learn secure sockets.
     
  6. sweepypanda

    sweepypanda Newbie

    Joined:
    Jul 27, 2010
    Messages:
    20
    Likes Received:
    4
    You will be setting yourself up for failure by using the WebBrowser object, as others have stated. In my opinion, however, depending on your needs you might start off with the WebBrowser object as it is significantly easier to debug when you're just starting off. Some of the knowledge you acquire by working with the WebBrowser object will help you towards a better understanding of HttpWebRequest/Sockets.