I am trying to logon users automaticly to an external site https://helpdesk.itslearning.com/Index.aspx
The idea is that I do the following steps:
- Retrieve the page with cURL in PHP
- Parse the HTML DOM and insert username and password
- Add document.getElementById("myForm").submit(); to the body onload
- echo the HTML and watch the magic
The problem is that this is not working. The form is submittet but the user is not logged in.
If I skip step 3. and press the submit button manually everyting works as intended. Any suggestions?