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

Using sockets to sign into website - or registering for website - Need example

Discussion in 'Visual Basic .NET' started by simpleonline1234, Apr 22, 2012.

  1. simpleonline1234

    simpleonline1234 Junior Member

    Joined:
    Jan 26, 2010
    Messages:
    169
    Likes Received:
    13
    Sockets - anyone know of an example of logging into a website?
    I am looking to move up in my programming skills (fingers crossed-god willing) and I'm just looking for an example of logging into a website using socket programming.

    I can achieve this using the Web browser component and webrequest but with me I like to know every option when I do things so I just looking for a basic example of showing me how to log into a website from the client side.

    I tried using the forum search for sockets log in but it didn't return any results.

    Also it can be an example of working with web forms from the client side.

    With webbrowser I can do this by element and webrequest with the POST method but I'm not sure who this works with sockets.

    Thanks guys.

    Chris
     
  2. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,143
  3. puneetas3

    puneetas3 Senior Member

    Joined:
    Jan 8, 2012
    Messages:
    876
    Likes Received:
    384
    Man did you search this forum for socket programming. I had seen a very elaborate socket programming thread here made a few months back by a member to demo how senukeX login and register on sites.

    Please try on stackoverflow instead, you won't find anything here.
     
  4. simpleonline1234

    simpleonline1234 Junior Member

    Joined:
    Jan 26, 2010
    Messages:
    169
    Likes Received:
    13
    Oh okay gotcha...damn I feel like a jackass now. So HttpWebRequest IS socket programming. Not sure why I didn't get that from reading. I was thinking there needed to be some sort of listener/port thing going on there.

    Thanks jazzc. One up for you my friend.

    Cool beans. I mixed up my def of sockets/httpwebrequest. I will search for that tutorial. You guys have your sh#t together here sir.

    .

    Thanks for the heads up. I will try over there here after searching for the tutorial. StackOverflow is a great place for quick questions. One up for you too my friend.

    Thanks guys.
     
  5. simpleonline1234

    simpleonline1234 Junior Member

    Joined:
    Jan 26, 2010
    Messages:
    169
    Likes Received:
    13
  6. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,143
    No, is is not socket programming. The reason I pointed you there is because you do not need actual socket programming. If you go that way, you 'll have to re-implement everything from scratch just to make an http connection - which is a huge task and it 's already done correctly by other for us to use. I assume you don't want that, but you actually want an easy and efficient way to talk to a web server :)
     
  7. smack

    smack Junior Member

    Joined:
    Feb 1, 2010
    Messages:
    182
    Likes Received:
    78
    Occupation:
    Software Engineer/Evil Genius
    Location:
    inside .NET