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

vb.net httpwebrequest

Discussion in 'Visual Basic .NET' started by persitquod, Jan 27, 2017.

  1. persitquod

    persitquod Newbie

    Joined:
    Mar 29, 2012
    Messages:
    3
    Likes Received:
    0
    Hi friends,
    i'm new to vb.net and need some help.
    i'm trying to send my mail to a site using httwebrequest looking random codes on the web.
    still now nothing works, coud you help me?
    this is the html page where I'm trying to send my mail with a random fake ip.
    Code:
    <div class="page-content"><form action="http://test.php" method="POST" name="formAnaInt">&nbsp;</p>
    <div class="box"><input id="inputAM" style="width: 200px;" name="email" required="" type="email" value="" placeholder="email"/><br/>
    <button name="button">Test</button><br/>
    <input id="inputAM" style="width: 50px; visibility: hidden;" name="ipuser" readonly="readonly" type="text" value="2001:16a2:7ca:2100:e537:28d1:86f:e128"/></div>
    </div>
    </form>
    
    Exist a way do to it throught webrequest or I need to put a webbrowser?
    thank you
     
  2. Netro

    Netro Junior Member

    Joined:
    Jun 12, 2015
    Messages:
    107
    Likes Received:
    27
    Occupation:
    Baka Dev.
    The html input page has nothing to do with the requests. It's more complicated!
    You need to capture the traffic of the specific website and try re-do it everything through web requests. You need to login, parse various values & keys, submit them and so on. It's easy, but somehow hard, it depends on the website.
    It seems you're new to this, so I highly suggest using an webbrowser component. Basically you don't have to do more than navigate, click buttons, and setting delays which is very simple.

    If you want to learn about Httpwebrequests and how to send and receive data I suggest: youtube.com/watch?v=7Wzel-g1U54

    Good luck!