Question
Dealing With Login Forms
Answer
Dealing With Login Forms
Description #
Occasionally when scrapping web sites in the INTERACTION code builder you come across sites with a login screen. To get around this issue you can use the "submitForm()" function in mADL.
Examples #
$t->fetch("http://mywebsite.com/login.php");
$t->submitForm( 0,
array(
'username'=>'myusername',
'passwd'=>'mypassword'
)
);
You can then continue to fetch the form again and pass your arguments or return any fetched results.
$t->fetch("http://mywebsite.com/tickets.php?status=".$args[0]);