Hi all,
i have a script to retrieve data from a website.
How can i use it when i need to login first?
here is an example what i have:
https://my.example.com brings me to the login page.
when i inspect the code of the login site i see that it uses this to login :
My email login
My password login
Submit
This is the script i use but need help to put login in there.
Regards
i have a script to retrieve data from a website.
How can i use it when i need to login first?
here is an example what i have:
https://my.example.com brings me to the login page.
when i inspect the code of the login site i see that it uses this to login :
My email login
Code:
<input class="form-control" data-val="true" data-val-required="Your username required!" id="UserName" name="UserName" placeholder="Your E-mailadres here " type="text" value="">
Code:
<input class="form-control" data-val="true" data-val-required="Password Needed!" id="Password" name="Password" placeholder="Your password here" type="password">
Code:
<input type="submit" class="btn btn-default purple" border="0" value="Login">
This is the script i use but need help to put login in there.
Code:
Sub Main(ByVal Parms As Object) Dim strSite = "https://my.example.com/" Dim strDocument = "" Dim strBody Dim x strBody = hs.GetUrl(strSite,strDocument,false,80) x = Instr(1,strBody,"header2",+1) strBody = Mid(strBody,x) x = Instr(1,strBody, "<p>",1) + 3 strBody = Mid(strBody,x) x = Instr(1,strBody, "<",1) - 1 strBody = Mid(strBody,1,x) hs.writelog("debug", strbody) end sub
Comment