Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

true
Child pages (Children Display)
alltrue
depth3
excerpt
Table of Contents

 

Authentication  - submitForm() madl Function

On occasions when you are retrieving a page source into an Interaction you may require authorisation from a login form. This is often known as a "PassThru"...

To get around this issue you can use the "submitForm()" function in mADL. The mADL SubmitForm function can be used to:

  1. Fetch the form at the requested url.
  2. Submit the required parameters using a string containing the form name or a numeric value representing the form (0 can be used instead to select the first form found, 1 then next and so on.)
  3. Pass the array of values to the login form.
  4. Return the results of the fetch for additional formatting.

Here's an example:

Code Block
themeRDark
languagephp
linenumberstrue
$t->fetch("http://mywebsite.com/login.php");