Adrian11111
Newbie
- Jan 7, 2012
- 1
- 0
Hello,
I am trying to build a script wich will log in automatically at this page: ( see the linkat the Edit Reason please)
The problem is that because of all js and stuff from there i can't get it working.
Anyone have any ideeas and suggestions?
This is what i have writed but it just do nothing.
I am trying to build a script wich will log in automatically at this page: ( see the linkat the Edit Reason please)
The problem is that because of all js and stuff from there i can't get it working.
Anyone have any ideeas and suggestions?
PHP:
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, '{LINK FROM THE EDIT REASON}');
curl_setopt ($ch, CURLOPT_POST, 1);
//The value scrapped loc1
$password = "";
$email = "";
//Load the page and get the values here?
curl_setopt ($ch, CURLOPT_POSTFIELDS, '__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE='.$value_scraped1.'&__PREVIOUSPAGE='.$val2.'&__EVENTVALIDATION='.$val3.'&ctl00%24hfUILocale=en_US&ctl00%24txtProductSearchName=Product+Search&ctl00%24cpContent%24txtUserName='.$email.'&ctl00%24cpContent%24txtPassword='.$password.'&ctl00%24cpContent%24btnSignIn=Sign+In');
curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$store = curl_exec ($ch);
curl_setopt($ch, CURLOPT_URL, '{YOUR ACCOUNT LINK}');
$content = curl_exec ($ch);
echo $content;
curl_close ($ch);
?>
Last edited: