POST-request, login programmatically RRS feed

  • Question

  • Hi, everyone!

    Unfortunately, I don have experience with HTTP.. so I need to programatically login to https://www.marathonbet.com/su/. The problem is that I cant figure out what exactly must be POST in my HTTP-Request: 

    <form id="login_form" action="https://www.marathonbet.com:443/su/login.htm">

    So all the data from this texboxes:

    <input type="text" name="username" id="loginpage_form_username" size="20" regex="^[0-9]{6,7}|[A-Za-z0-9\-_\.\%\+]+@([A-Za-z0-9\-_]+\.)+[A-Za-z]{2,4}$" class="required error" aria-required="true">
    <input type="password" name="password" id="loginpage_form_password" size="20" regex="^.{6,}$" class="required" aria-required="true">

    is sent to the 



    Which way to POST my login and pass to the "login.htm"?

    • Moved by Kristin Xie Thursday, October 29, 2015 8:24 AM
    Wednesday, October 28, 2015 12:47 PM


All replies

    • Proposed as answer by Kristin Xie Thursday, October 29, 2015 8:24 AM
    • Marked as answer by Just Karl Thursday, November 5, 2015 11:24 PM
    Wednesday, October 28, 2015 1:34 PM
  • Use something like Fiddler http://www.telerik.com/fiddler to trace the HTTP traffic generated by a browser and replicate it.

    Fiddler will also allow you to export a browser session as a Visual Studio Web Test.  And Visual Studio will allow you to generate C# code that implements a Visual Studio Web Test.


    David http://blogs.msdn.com/b/dbrowne/

    Wednesday, October 28, 2015 2:07 PM
  • Try below id and names.

    For Username : 


    For Password :


    If it doesn't work then copy their login <div> and check it.


    • Proposed as answer by Jigneshk Thursday, October 29, 2015 2:41 PM
    Wednesday, October 28, 2015 3:50 PM