|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Logging in to a website using.
Hello,
I have a problem that I cant seem to find a solution for. I need to login to a partner site to get update job data. That has to be done every 3 hours. I would like to make a script that will check this and notify me with an e-mail when anything changes, which would make my days easier. The problem is that I cant make a script to automatically login to the site. The form for authentication follows: <form name="WebForm1" method="post" action="Default.aspx" language="javascript" onsubmit="if (!ValidatorOnSubmit()) return false;" id="WebForm1"> <input type="hidden" name="__VIEWSTATE" value="dDwtOTY0ODk4MDY0O3Q8O2w8aTwxPjs+O2w8dDw7bDxpPDE+Oz 47bDx0PDtsPGk8Mz47PjtsPHQ8cDxwPGw8VGV4dDs+O2w8XGU7 Pj47Pjs7Pjs+Pjs+Pjs+Pjs+sb5myG1JP2fuwGEjJ59nQ373rj 8=" /> <input name="txt_user" type="text" maxlength="10" id="txt_user" tabindex="1" style="border-width:1px;border-style:solid;width:126px;" /> <span id="RequiredFieldValidator1" controltovalidate="txt_user" errormessage="Användarnamn" display="Dynamic" evaluationfunction="RequiredFieldValidatorEvaluateIsValid" initialvalue="" style="color:Red;display:none;">*</span><BR> - - - -- - Some html code... <input name="txt_pass" type="password" maxlength="10" id="txt_pass" tabindex="2" style="border-width:1px;border-style:solid;width:125px;" /> <span id="RequiredFieldValidator2" controltovalidate="txt_pass" errormessage="Lösenord" display="Dynamic" evaluationfunction="RequiredFieldValidatorEvaluateIsValid" initialvalue="" style="color:Red;display:none;">*</span><BR> - - - -- - Some html code... <input type="submit" name="cmd_login" value="Logga in" onclick="if (typeof(Page_ClientValidate) == 'function') Page_ClientValidate(); " language="javascript" id="cmd_login" tabindex="3" style="border-width:1px;border-style:solid;font-weight:bold;width:64px;" /> <input type="submit" name="cmd_clear" value="Rensa" id="cmd_clear" tabindex="4" style="border-width:1px;border-style:solid;font-weight:bold;width:50px;" /><BR> <div id="ValidationSummary1" headertext="Följande uppgifter saknas" showmessagebox="True" showsummary="False" style="color:Red;display:none;"> <script language="javascript" type="text/javascript"> <!-- var Page_ValidationSummaries = new Array(document.all["ValidationSummary1"]); var Page_Validators = new Array(document.all["RequiredFieldValidator1"], document.all["RequiredFieldValidator2"]); // --> </script> <SCRIPT language='javascript'>document.getElementById('txt_user').focus() </SCRIPT> <script language="javascript" type="text/javascript"> <!-- var Page_ValidationActive = false; if (typeof(clientInformation) != "undefined" && clientInformation.appName.indexOf("Explorer") != -1) { if ((typeof(Page_ValidationVer) != "undefined") && (Page_ValidationVer == "125")) ValidatorOnLoad(); } function ValidatorOnSubmit() { if (Page_ValidationActive) { return ValidatorCommonOnSubmit(); } return true; } // --> </script> </form> Is there anyone that can help me to find a way to make a automatic login based on the information ? /P-H |
![]() |
| Viewing: ASP Free Forums > Other > Programming Help > Logging in to a website using. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|